I can't suppress the create table query message box. help!

G

Guest

I changed the tool, options, action queries box to unchecked, and yet when I
do a create table query as part of code, I get the message asking if it's
okay to delete the original table. I have to select yes every time.
 
J

John Vinson

I changed the tool, options, action queries box to unchecked, and yet when I
do a create table query as part of code, I get the message asking if it's
okay to delete the original table. I have to select yes every time.

Put a call to DoCmd.SetWarnings False prior to running the delete
query; be sure to DoCmd.SetWarnings True after it, or you'll turn off
all warning messages for the rest of the Access session!

John W. Vinson[MVP]
 
G

Guest

Thank you SO much. That worked great!

John Vinson said:
Put a call to DoCmd.SetWarnings False prior to running the delete
query; be sure to DoCmd.SetWarnings True after it, or you'll turn off
all warning messages for the rest of the Access session!

John W. Vinson[MVP]
 

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