How to get rid of pop-up dialog box after insertion/deletion

nandhabiwat

New member
Local time
Tomorrow, 00:35
Joined
Feb 17, 2004
Messages
5
Hello everyone,

I got a couple of INSERT and DELETE qry that are called through forms and whenever those qry are activated there would be confirmation dialog boxes popped up asking whether the user wanting to proceed with insertion or deletion of such and such number of rows. I know that "DoCmd.Echo = false" won't work with these kinds of popped up message. So are there any way in ACCESS to disable the settings.
Please help. Thank you very much in advance.


IMS
 
I think it may be
Code:
DoCmd.SetWarnings False
that you are looking for.


Stephen
 
Why is everyone so fond of manually suppressing the warning messages? Just wondering if there is some advantage to doing that versus using the .Execute method, which automatically suppresses them: supress warning messages
 
dcx693 said:
Why is everyone so fond of manually suppressing the warning messages?

I don't know but I'm manually fond too. :cool:
 
Mile-O-Phile said:


I don't know but I'm manually fond too. :cool:
Are you saying that you like being "hands-on"? :eek:
 
Don't forget to set the warnings back on immediatly after your queries run. This is especially important if you are still developing in the db. If the warnings are off and you close an object that you changed without saving it, you WILL NOT BE PROMPTED! Access will simply discard the changes.

To help me avoid this problem, I always turn the cursor to an hourglass when I set the warnings off and then return the cursor to its normal state when I turn warnings back on. That way I have a visual clue to remind me that the warnings are off.
 
Pat, do you know of any disadvantage in this case to using the .Execute method?
 
Thanks a lot folks

Your suggestions are so valuable. Thank you very much. It works!!
 

Users who are viewing this thread

Back
Top Bottom