Bypass Msg boxes?

A

Anna

Hi,

I have a macro that runs a series of queries to update
data in a table and make new tables. At the moment, I am
getting all the associated message boxes (e.g. "You are
about to paste 23 rows into a new table...") - is there
any way I can run the macro without showing these boxes?
Or a way I can automatically press "OK" to them all?

thanks,

Anna
 
C

Cheryl Fischer

Before the actions to run your queries, insert the SetWarnings action and
set its value to False. After the actions to run your queries, insert the
SetWarnings action and set its value to True.
 
A

Anna

That's great - thanks.

Anna
-----Original Message-----
Before the actions to run your queries, insert the SetWarnings action and
set its value to False. After the actions to run your queries, insert the
SetWarnings action and set its value to True.

--
Cheryl Fischer
Law/Sys Associates
Houston, TX




.
 
S

Steve Schapel

Wolfgang,

Just as a matter of interest, it is not necessary to use SetWarnings,
Yes at the end of the macro. The Warnings are automatically reset to
Yes at the end of the macro anyway.

- Steve Schapel, Microsoft Access 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