HelgeLarsen
Programmer
I have some VBA that loops through a list of tables, empties them, and then fills them again by running append queries.
For each table I get messages like "You are about to delete 123 row(s) from the specified table" and "You are about to append 456 row(s)". These messages I can suppress by "DoCmd.SetWarnings (False)".
But if some error happens when appending records, the accompanying error message is also suppressed. An error message could for instance be "<Database> can't append all records in the append query. <Database> set 7 field(s) to Null due to type conversion failure, ... ...".
How can I suppress the warning messages and still get any error messages?
________________________
Helge Larsen
For each table I get messages like "You are about to delete 123 row(s) from the specified table" and "You are about to append 456 row(s)". These messages I can suppress by "DoCmd.SetWarnings (False)".
But if some error happens when appending records, the accompanying error message is also suppressed. An error message could for instance be "<Database> can't append all records in the append query. <Database> set 7 field(s) to Null due to type conversion failure, ... ...".
How can I suppress the warning messages and still get any error messages?
________________________
Helge Larsen