GopherUK
Active Member
- Joined
- Jan 23, 2009
- Messages
- 473
Hi,
I was just wondering what is the best way to create an "orders" table so that I can enter multiple items in to a single order and have it so they will be all IDed as the same order in the table. Given that autonumber wont allow duplicate IDs, is the answer simply to have the form have fields to allow multiple entiries for products and then have corresponding fields in the table. Then just hope that the number of different items ordered does not exceed the number of fields?
Is there another solution? I can't see how else it would be possible to create a schema that would allow a query to get the details of all the items in a single order if they do not have the same primary key?
Thanks.
I was just wondering what is the best way to create an "orders" table so that I can enter multiple items in to a single order and have it so they will be all IDed as the same order in the table. Given that autonumber wont allow duplicate IDs, is the answer simply to have the form have fields to allow multiple entiries for products and then have corresponding fields in the table. Then just hope that the number of different items ordered does not exceed the number of fields?
Is there another solution? I can't see how else it would be possible to create a schema that would allow a query to get the details of all the items in a single order if they do not have the same primary key?
Thanks.