I am trying to set up a form in a database for data entry.
The data is being used to create receipts for customers and tracking overall sales.
The Tables and Relations are as follows:
Receipts:
- Receipt ID (Primary)
- Transaction Date
- Name
Sales:
-
Sale ID (Primary)
-
Receipt ID (Foreign)
-
Product ID (Foreign)
-
Unit Price
-
Quantity
Products:
- Product ID (Primary)
- Department
- Product Name
- Product Description
I would like to create a form with the Receipt fields above a datasheet subform containing the following fields:
Data Entry Form:
- Product Name
- Product Description
- Unit Price
- Quantity
Where I am getting hung up is using a list box or combo box within the datasheet with a dropdown to choose the product name.
After choosing the product name, I would like it to update the Product ID on the Sales table as well as showing the proper Product Description for the Product chosen.
I have managed to add a list box or combo box in the table, and had it show the right list, but it will not update the Product Name or Product Description.
Is what I am trying to do possible? If so, how would I go about doing it? If not, what other methods could I follow for a similar result.
My ultimate goal is to be able to enter all the linked information from one form. Then create a button that saves the record and brings up a corresponding Report with all the information in place.
I have a sample database, but it won’t let me attach it because I have no points, and this is my first time on one of these forums.