How to supress update query notifications

jjh

Registered User.
Local time
Yesterday, 22:52
Joined
Jun 7, 2006
Messages
32
Hi:

I have a number of queries that run prior to exporting my DB into and XML file. I run the query in a section of VB code as follows:

Dim stDocName As String
stDocName = "flow_e_e_tbl_connection_name_id_update"
DoCmd.OpenQuery stDocName, acNormal, acEdit

The query executes as expected, and gives the usual warnings: You are about to run an update query that will modify your table...proceed Y/N/H....
and the status window:
You are about to update N row(s)...Update? Y/N

Is there a way to run the query in silent mode? e.g. without the popups? If not, is there another way to runthe query in a silent way?
Thanks
J
 
Docmd.SetWarnings False 'Turn Warnings Off
Docmd.SetWarnings True 'Turn Warnings On
 
KeithG said:
Docmd.SetWarnings False 'Turn Warnings Off
Docmd.SetWarnings True 'Turn Warnings On


Works like a charm!...THANK YOU!

John
 

Users who are viewing this thread

Back
Top Bottom