Hi ScottGem,
Thanks for your reply,
I did change the field 'name' and 'date' as you advised. For the method I am using for stock on hand i am not entirely sure as for the above example I have been following advice from an other experienced user:
Quoted:
Query #1 - Compute stock on hand as of your cutoff date. Create a single stock-on-hand transaction with the cutoff date. Put it in a temporary table until you need it. This will be a two-layer query. I.e. a query of a query.
Query #1A - a summation query grouped by item number for all transactions earlier than the archiving date so you can get the "inventory of X at archiving date"
Query #1B - an append query that draws from the summation query and feeds it to the temp table. The stock-on-hand record will have the archiving date
Query #2 - Append all active transactions with date less or equal to the selected cutoff date. Assuming 1A and 1B worked, this does NOT need grouping or aggregated functions.
Query #3 - Delete all active transactions, same criteria. Again, only needs the date criteria.
Query #4 - Append the Stock-on-hand transactions you kept earlier from query #1. Needs no criteria, they were all applied earlier.
Query #5. Empty out the temp table that held stock-on-hand transactions. Needs no criteria.
I don't want other users to design my dB for me but follow their advice as I am still level beginner and would like to understand what i am doing right or wrong which, now makes me wonder what are the downfall of parameter queries?
Is the the Db still dernomalised if calculated values are stored only temporarly?
Thanks again,