Kumba1
Technical User
- Aug 29, 2002
- 94
I have a table called tblSales and tblSalesParts... You enter the Sales Information in TblSales (Mainly Cust. Info), and you enter all the ordered items in tblSalesParts (detail)... i'm at odd's with another DB Programmer as to the best way to relate, or key the information between to the two tables... He suggests that the proper way would be to reference the OrderNumber field, which is text, to relate the two tables... I think it would be better to relate the two tables via the Primary Key of tblSales... I hope someone out there can spread some light on the situation... BTW, the Order Number is Alphanumeric, which is why it's a text datatype... the table structures are listed below..
tblSales
<FieldName> - <datatype>
------------------------
SalesKey - Primary Key
OrderNumber - Text
SaleDate - Date
Salesman - Text
Status - Text
tblSalesParts
<FieldName> - <datatype>
------------------------
SalesPartsKey - Primary Key
ItemID - Text
qty - Integer
price - currency
Released - Yes/No
tblSales
<FieldName> - <datatype>
------------------------
SalesKey - Primary Key
OrderNumber - Text
SaleDate - Date
Salesman - Text
Status - Text
tblSalesParts
<FieldName> - <datatype>
------------------------
SalesPartsKey - Primary Key
ItemID - Text
qty - Integer
price - currency
Released - Yes/No