469,616 Members | 1,792 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,616 developers. It's quick & easy.

Display Alerts - How Do you disable them in VBA?

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
3 28426
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
32,200 Expert Mod 16PB
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
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.

Similar topics

30 posts views Thread by Blnukem | last post: by
reply views Thread by ryan baldwin | last post: by
1 post views Thread by rhompi | last post: by
2 posts views Thread by Luis Esteban Valencia | last post: by
4 posts views Thread by nick | last post: by
7 posts views Thread by swethasivaram | last post: by
1 post views Thread by =?Utf-8?B?QmFkaXM=?= | last post: by
reply views Thread by jason.richard | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.