Here's what I want to do:
The user should be able to enter a new "sale" record with some basic information (who's buying, etc.), and then add items to that sale (like a shopping cart). There's one master "Sales" table and one "SaleContents" table, that look like:
Sales: int ID, name of person buying, etc.
SaleContents: FK SaleID, Item Purchased, Quantity, etc.
How do I make a form that will allow a user to add an arbitrary number of purchased items, and then, upon saving, it:
- Makes a Sale record
- For each item purchased, makes a SalesContent record with a FK pointing to the above
If the user cancels, neither the Sale record nor the SalesContent record are created.
Will I have to do all of this by hand in VBA, or is there some functionality in Access to help me?