I have two tables in my database. First one called tblProducts (with ID, Product, Price) and a second one called tblSales (with ID, Date, ProductID, Quantity). I need a form to add new entries to tblSales. The form must have one textbox to choose a date and then a list with all the products (from tblProducts) with a textbox to fill the quantity of the the product that was sold that date. I don't know if I made my self clear but I'll try to give you an example below.
Example:
Let's say that tblProducts has 2 entries:
ID Product Price 1 pr1 10 2 pr2 12
The form should be something like this:
date: 09/06/2014
pr1:__10_______
pr2:__12_______
The data in tblSales after I save should be like this:
ID Date ProductID Quantity 1 9/6/2014 1 10 2 9/6/2014 2 12