I need help in creating an Access database. I am beginner in Access but could find my way around.
I think I need to have 3 tables in the database that I am creating. So far here is how I have set up 3 tables.
CustomerT - Customer info (name, birth date, address, etc.) Primary key CustomerID, Secondary key ProductID. I have one other field in this table called FileNum - this is customer number I assign on paper form. All the customers have one unique file number.
ProductT - This table has Yes/No choice for all product (say 10). Yes means charge customer for that produce and No means don't. Each record is ties to specific customer.
Primary key ProductID. I also have FileNum field in this table and CustomerT and ProductT are related by this field.
ProductInfoT - this table has details about the product. Product name, numerical code and price.
Let's say for Customer 11111 (FileNum). I would have customer name, birthdate, address etc in CustomerT. In ProductT, I would have following.
Product 1 Yes/No
Product 2 Yes/No
...
...
Product 10 Yes/No
and In ProductInfoT
ProductInfoID Product Name Product Code Price
1 Product 1 99999 $10
2 Product 2 99888 $12
...
...
10 Product 10 99777 $15
Now I would like to generate an Invoice for Customer 11111. It should look in ProductT, pick only products with "Yes" or Check mark, pick corresponding product details from ProductInfoT and sum price for total cost.
In order to what I would like to achieve, Is 3 table set up that I mentioned appropriate or is there a better way to do it?
Finally, What do I need to do to generate final Invoice?
Thank you.