I'm making an inventory/order database and am trying to figure out how to structure it. So I'm storing products in a warehouse for companies that they use for tradeshows. I currently have it setup where I have a table with all the products. So what I am having trouble figuring out is how to link (if this is even possible) multiple records from one table to a single record from another. What I mean by that is, there's a continuous form that displays all the products. The customer can click on a checkbox next to the product they want to have sent out. So when they click on a button, I have a query that only shows the product records that are selected. When they proceed to the checkout form they can enter in all the shipping information, etc. So the shipping information is on a separate table. When they enter that order in, it would only be a single record. If they select 8 products to ship for example, I don't want 8 separate records for those products, I'd like them all to have the same Order ID # as the shipping information record. Is this possible to do?
My second question is, I'm also having trouble figuring out how to record the selected products. I can't leave products checked after an order so I have it set to change the selected products back to false so it clears out the cart after the order. I've tried an append query but it wouldn't do it because it said "it cannot add INSERT INTO function for Multi-valued fields". For inventory purposes, I need all those selected products for each order to record so that it will #1 have a record of it and #2 deduct the amount that they ordered from the amount of stock on hand.
So to sum it up in a nutshell in case I'm not explaining it very well. I have a continuous form that is the product list. It simply pulls from the products table. Each product record has a checkbox that they can select to have shipped out. Once they select all the products they need you click a button to take you to an item cart form. they verify the amounts and click a button to proceed to the shipping information. The shipping info form has a subform (that is the item cart so they can see the items they selected). They enter in all the shipping information and submit the order. That's ideally how I want it to work. But with the two issues I've run into I'm having a hard time achieving that and need some guidance. I want however many products they select on an order to be the same orderID number as the shipping information OrderID number and I need the selected products for the order to permanently save to a table before the system clears out the checked items. Because the selected products are run by a query that only shows the products that are selected so when the system unchecks all the products it clears the query records. The records I want saved to a table I need to remain there permanently and be linked to the shipping info OrderID.
Hopefully I'm explaining this properly. I'm not advanced in access yet, still figuring alot of stuff out and have hit a brick wall on this. Any help would be greatly appreaciated!