This is way bizarre and I don't have any idea why it's happening. And I need it to stop!!!
In my VBA code, the first thing I do is make a backup copy of the table that I'm appending data to (so I can revert if anything goes wrong during the import process).
'Backup 1001 Consolidated table in case of error and need to restore. If user cancels
' at anytime after this, will need to restore.
DoCmd.CopyObject , "previous_1001 Consolidated Pooled Ins", acTable, "1001 Consolidated Pooled Ins"
I've stepped through my queries and the backup table (previous) is the correct data until I run the append query that appends data to the main query. It is specific in the query that it should append table '1001 Consolidated...'
DoCmd.OpenQuery "0001 Append Discoverer Extracts", acViewNormal, acEdit
When I run this step the append updates BOTH the Main table AND the backup table (previous)!
To test this even further, I ran another query to delete the data that was appended and this query deleted the data in both tables too!
Anyone know how to stop this? No point in creating a backup if it's not a true backup of the data!
Thanks,
Carie
In my VBA code, the first thing I do is make a backup copy of the table that I'm appending data to (so I can revert if anything goes wrong during the import process).
'Backup 1001 Consolidated table in case of error and need to restore. If user cancels
' at anytime after this, will need to restore.
DoCmd.CopyObject , "previous_1001 Consolidated Pooled Ins", acTable, "1001 Consolidated Pooled Ins"
I've stepped through my queries and the backup table (previous) is the correct data until I run the append query that appends data to the main query. It is specific in the query that it should append table '1001 Consolidated...'
DoCmd.OpenQuery "0001 Append Discoverer Extracts", acViewNormal, acEdit
When I run this step the append updates BOTH the Main table AND the backup table (previous)!
To test this even further, I ran another query to delete the data that was appended and this query deleted the data in both tables too!
Anyone know how to stop this? No point in creating a backup if it's not a true backup of the data!
Thanks,
Carie