Remove modal popups in make-table query (1 Viewer)

jewels

Registered User.
Local time
Today, 02:09
Joined
Apr 28, 2005
Messages
19
I need to be able to run a number of queries where some of the queries are make-table queries. What I don't want is to have is all the messages that come up during the creation of the table ie deleting existing files and showing the number of records created to place in the file. Is there a way to block these messages?
 

Sergeant

Someone's gotta do it
Local time
Yesterday, 21:09
Joined
Jan 4, 2003
Messages
638
Use
DoCmd.SetWarnings False
...code...
DoCmd.SetWarnings True

You should have error intervention that will turn the warnings back on.

CmdBtn_Click_Error:
DoCmd.SetWarnings True
...deal with error...
Exit Sub
 

RuralGuy

AWF VIP
Local time
Yesterday, 19:09
Joined
Jul 2, 2005
Messages
13,825
Hi jewels,
Use CurrentDB.Execute YourSQL, dbFailOnError and you do not get all of the warnings but you will get errors for your error handler if any occur.
 

jewels

Registered User.
Local time
Today, 02:09
Joined
Apr 28, 2005
Messages
19
thanks

Thanks for your help. Thats works well.
 

Users who are viewing this thread

Top Bottom