Ladies & Gents:
I am running a query that calculates actual production quantity against a set order quantity. I am running append & delete queries to separate pending and completed orders into two tables. Does anyone know how to keep the append query from entering duplicate records into the completed orders table? I want to run a macro which runs the first query, then the append query to copy all information to a table for manipulation, then a second append query to pull out the completed orders, and finally, a delete query to erase completed records from the second append query table. Everything is working so far except for the fact that duplicate orders are showing up in the tables. Can I restrict this data based on some type of No Duplicates property over two fields that are directly related (date of order, product ordered)? My main problem is that this series of queries has to be run multiple times throughout the day to maintain accurate production posting against orders required. I know this is long winded. I really appreciate your help.
I am running a query that calculates actual production quantity against a set order quantity. I am running append & delete queries to separate pending and completed orders into two tables. Does anyone know how to keep the append query from entering duplicate records into the completed orders table? I want to run a macro which runs the first query, then the append query to copy all information to a table for manipulation, then a second append query to pull out the completed orders, and finally, a delete query to erase completed records from the second append query table. Everything is working so far except for the fact that duplicate orders are showing up in the tables. Can I restrict this data based on some type of No Duplicates property over two fields that are directly related (date of order, product ordered)? My main problem is that this series of queries has to be run multiple times throughout the day to maintain accurate production posting against orders required. I know this is long winded. I really appreciate your help.