Hi,
I have code that calls an append query and then a delete query as part of an import process. The queries were set up in the query design interface and are called by name in VBA. This works fine, but I wonder what options we have for error checking. I have turned off error message for this particular part of code as this database is used by non-technically minded people and they panic at the alerts about being about to permanently delete records etc...
My concern is that if the append query fails the next line of code calls the delete query which would then permanently remove all the data that I was trying to append. Does anyone have a suggestion of a better way to go about this?
Regards
Duane
I have code that calls an append query and then a delete query as part of an import process. The queries were set up in the query design interface and are called by name in VBA. This works fine, but I wonder what options we have for error checking. I have turned off error message for this particular part of code as this database is used by non-technically minded people and they panic at the alerts about being about to permanently delete records etc...
My concern is that if the append query fails the next line of code calls the delete query which would then permanently remove all the data that I was trying to append. Does anyone have a suggestion of a better way to go about this?
Regards
Duane