Try:
Application.SetOption("Confirm Action Queries"), False
This is a different setting from SetWarnings, and you may not know about
engine-level errors that occur when you action queries run. It may be better
to Execute the query, e.g.:
dbEngine(0)(0).Execute strSQL, dbFailOnError
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Coy Howe" <cf*@olypen.com> wrote in message
news:41**********************@news.newsgroups.ws.. .
In tools options you can shut off the Confirm Action Queries. I am
wondering is there a way to do this with access runtime. So when a
program is distrubuted the action query confirmation box does not
appear?