One way is to run DoCmd.SetWarnings False before you run the SQL (then
DoCmd.SetWarnings True once the SQL has run).
A better way, in my opinion though, is to use the Execute method of either
the Database or QueryDef object. The reason I prefer this is that you can
specify an option of dbFailOnError, so that you can trap any errors that may
occur.
--
Doug Steele, Microsoft Access MVP
(No private e-mails, please)
mark said:
I get the "You are about to append one record" when running my SQL. I
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.