By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,574 Members | 2,966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,574 IT Pros & Developers. It's quick & easy.

Display Alerts - How Do you disable them in VBA?

P: 2
I am running/coding update queries in MS Acess VBA 2002
and each update query asks the user to click "Yes or No" to verify they want to update the table.

I do not want this user interaction (since there are alot of queries)

How can I set the Display Alerts to FALSE (like in Excel) so that this box does not pop up asking the user if they want to update the table?

or is there a way for me to hard code a line to automatically click "Yes" for the end user when this verification box/display alert pops up?

I have searched for this answer and cannot find it. Thank in advance for ANY help. This project is due tomorrow Friday the 8th.

Willis
Feb 7 '08 #1
Share this Question
Share on Google+
3 Replies


Khriskin
P: 20
DoCmd.SetWarnings False 'will turn off the popup warnings
DoCmd.SetWarnings True 'will turn them back on

Makes sure you turn them off when necessary as it will disable /all/ error and warning messages!
Feb 7 '08 #2

NeoPa
Expert Mod 15k+
P: 31,494
Good answer, but you should understand that this is only for data type warning messages. This will not disable error messages as such.
Feb 7 '08 #3

P: 2
Thanks for the quick reply, it really helped - Everything is working fine now.
I REALLY appreciate it. Thanks Willis
Feb 7 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.