Hey ya'll,
I did an inventory database in access for someone but it has a problem. It has a products database which contains the products. It has a purchases database which is to record the products bought and a sales database which has the products sold.
Now to get the current inventory one has to take the initial quantity (in the products database), add the amount purchased and subtract the amount sold. To do this I did a calculated query where by I created a query that used the product id and so on from the products table but included the purchased amount from the purchased table and the sold amount from the sales table. The trick is that the query does not work properly. It only lists products that have entries both in the purchase table AND sales table. If entries for the product are missing in one or both of those tables then that product does not show up.
Can anyone please help me sort this out? What I want it to do is list ALL the product regardless of whether they have entries in the products and sales (seeing that they all have an initial quantity anyway and that figures in the calculation). Thanks in advance!
Thomas
I did an inventory database in access for someone but it has a problem. It has a products database which contains the products. It has a purchases database which is to record the products bought and a sales database which has the products sold.
Now to get the current inventory one has to take the initial quantity (in the products database), add the amount purchased and subtract the amount sold. To do this I did a calculated query where by I created a query that used the product id and so on from the products table but included the purchased amount from the purchased table and the sold amount from the sales table. The trick is that the query does not work properly. It only lists products that have entries both in the purchase table AND sales table. If entries for the product are missing in one or both of those tables then that product does not show up.
Can anyone please help me sort this out? What I want it to do is list ALL the product regardless of whether they have entries in the products and sales (seeing that they all have an initial quantity anyway and that figures in the calculation). Thanks in advance!
Thomas