Suppress Import Data Results Message

L

Linda

And the question...

I am using VBA code to import data from a spreadsheet into a table in Access (2002). All works fine, however I get an Import Data Information message
"(My Application) was unable to append all the data to the table. The contents of fields in (0) records where deleted, and 0 records were lost blah blah blah ....." even when all the data is loaded completely. This is a very long and confusing message to the End User

How can I suppress this message (via code) from popping up after the Import is complete
Thanks
Linda.
 
J

Jim/Chris

DoCmd.SetWarnings False
Code......
DoCmd.SetWarnings True

Jim
-----Original Message-----
And the question....

I am using VBA code to import data from a spreadsheet into
a table in Access (2002). All works fine, however I get an
Import Data Information message:
"(My Application) was unable to append all the data to the
table. The contents of fields in (0) records where
deleted, and 0 records were lost blah blah blah ....."
even when all the data is loaded completely. This is a
very long and confusing message to the End User.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top