Simple question about an orders table

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've done a lot of reading now and I think I am coming along leaps and bounds.

One question I have... if you are using a database that has information in it regarding the stock a company has, is it better to...

a) Have a field in the table holding the information about the different items in stock that holds the actual number of items, which I assume would be adjusted using a macro when recording a new delivery of the item or shipping an order of the item in the database.

or...

b) Have a form/report that calculates the total in stock by subtracting the total number of that item shipped from the total number of that item delivered.

Or they both acceptable by the God of RDBMS?


The Best Practice method for determining Quantity on Hand is to calculate it as needed. This is normally done by summing the transaction records.

Note: Inventory control is one of the most difficult things to program with any development system.

see: Inventory Control: Quantity on Hand
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I am pretty well schooled in VBA for Excel so I can decipher that VBA code easy enough I think. Thank you.
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top