Create Table Auto Answer

J

James

I have a query that updates an exisiting table.
When i run the query it prompts "You are about to run a make table query
that will modify data in your table" To which you have to answer Yes or No


It then prompts "The existing table will be deleted before you run the
query"
Yes, No

Is there anyway to have access automatically answer those questions when
running the query through a button on a form?

Thanks
 
A

Allan Murphy

James
Before you run the query put in this line

DoCmd.SetWarnings False

after the last line

DoCmd.SetWarnings True

Allan
 
M

mray29

If you run it in code, use DoCmd.SetWarnings (False) to turn off the
warnings. Be sure and turn them back on again after you're done. You can also
do this in a macro.
 

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