How do i auto commit to prompts?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm new to access and VB and have a quick question....

I'm using VB to copy tables, move entries, delete entries, clear tables, ect.
everytime one of these actions is done, I am warned that I am about to
delete 10 entires, append 50 entries, ect. Is there a way for yes to be
automaticly selected? And if so, how can I do this?

Thanks for whatever help you can give.
 
Prior to making the necessary calls in VB to modify your tables call
the following:

DoCmd.SetWarnings False

Then after your code had run call:

DoCmd.SetWarnings True

to turn the warnings back on.
 
You can suppress those messages if you turn SetWarnings off.
But then you don't know if the action succeeded for failed.

Instead, Execute your action queries.
There is no warning message if it succeeds.
You can be notified it fails.
And you can programmatically check the number of records affected.

For an explanation of the details, see:
Action queries: suppressing dialogs, while knowing results
at:
http://allenbrowne.com/ser-60.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top