My Database has tables like this:
tblOrders
OrderID
CustomerID
Date
....etc
tblOrdComponents[/u
OrderID
ComponentID
Qty
Components
ComponentID
CompDescription
Price
I want to setup a 1 to many relationship between tblOrders and tblOrdComponents as one order can include many components.
At the moment the OrderID in tblOrders is an autonumber. To create the relationship OrderID in tblOrdComponents must be an autonumber as well.
How do I get the two ID's to match up all the time. I will be entering the data in using a form. Should I make the two OrderID fields a text field, then have the form create the autonumber somwhow and enter it into both tables?
Thanks for your help
Smitch
tblOrders
OrderID
CustomerID
Date
....etc
tblOrdComponents[/u
OrderID
ComponentID
Qty
Components
ComponentID
CompDescription
Price
I want to setup a 1 to many relationship between tblOrders and tblOrdComponents as one order can include many components.
At the moment the OrderID in tblOrders is an autonumber. To create the relationship OrderID in tblOrdComponents must be an autonumber as well.
How do I get the two ID's to match up all the time. I will be entering the data in using a form. Should I make the two OrderID fields a text field, then have the form create the autonumber somwhow and enter it into both tables?
Thanks for your help
Smitch