I have two tables, sales and assets.
Sales has product code, name, sales figure and sales period (e.g. 01/01/2001 to 01/02/2001).
Assets has product code, name, asset value and date (e.g. 01/02/2001).
The product codes are linked and are the same in these two tables.
I have also linked the dates in a top date table.
Top date has, top date (e.g. Q1), sales period (from sales table), and date (from assets table).
The Assets and Sales tables are updated by running a macro that transfers data from excel sheets to the respective tables.
However when the sales figure = 0 for a specific period, a record is not created in the excel file and therefore does not appear in the access table.
I would like to create an append query that adds a record into the sales table in access if there is a record in the assets table but not a record in the sales table for the same top date.
I hope that makes sense. Please let me know if you need any more explanation.
If that is not possible, I would like to run a query that finds all the sales records that are missing (i.e. there is a record for assets but not for sales).
Can anyone help? It would be very much appreciated.