ms访问vb.bet的Matrix / Array数据库 [英] ms access Matrix / Array database for vb.bet
问题描述
嗨
我有一个问题如何设置数据库
我正在使用Ms访问VB.net强类型数据库
现在我有500产品
每个产品都有2个标准的价格W和H
所以我曾经在excel上有一个矩阵,有500个桌子
ex
第一张桌子(产品A)
栏目100 150 200 300
排50 60 70
和单元格交叉口是价格
秒表(产品B)
栏135 145 205 310
排54 62 75
和单元格交叉口价格
现在要制作在Visual Studio VB.NET中使用的访问数据库
我最后需要做的是当我选择A 100 50时我得到的价格
我有没有制作500张桌子!!!还是有更简单快捷的方式
(更新他们的任何数字都没有公式或模式:S)
我可以制作每个访问单元格中的3D数组,然后当我调用该单元格时我必须给出2个参数并且它给我第3个,所以我调用A,100,50并且它给出了价格!?
谢谢
Hi
I have a problem how to set the data base
I am using Ms access VB.net Strongly typed Data base
now i have 500 products
each product got 2 criteria for price W and H
so i used to have like a matrix on excel with 500 tables
ex
first table (Product A)
column 100 150 200 300
row 50 60 70
and the cell intersection is the price
second table (Product B)
column 135 145 205 310
row 54 62 75
and the cell intersection is the price
now to make an access database to be used in Visual studio VB.NET
what i need to do at the end is when i choose A 100 50 I get the price
do i have to make 500 tables!!! or is there an easier faster way
(Update "Their is no formula or pattern for any number :S")
can i make a 3D array in each access cell, then when i call that cell i have to give 2 parameters and it gives me the 3rd one ,so i call A, 100, 50 and it gives the price!?
Thanks
推荐答案
像这样制作表格 -
ID - 产品 - W_Price - H_Price
1 - A - 100 - 50
2 - A - 150 - 60
3 - B - 135 - 54
4 - B - 145 - 62
通过这种方式,您可以将500种产品保存到1个表中,也可以使用任何价值选择查询中的列组合。
Make table like this -
ID - Product - W_Price - H_Price
1 - A - 100 - 50
2 - A - 150 - 60
3 - B - 135 - 54
4 - B - 145 - 62
By this way you can save your 500 products into 1 table also you can get any value using combination of columns in your select query.
这篇关于ms访问vb.bet的Matrix / Array数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!