Auto Commit

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

Guest

I'm new to VB and still learning, but I have a quick question. I have
written code to append entries, delete entries, copy tables, ect. However,
every time it goes to delete, append, ect, it asks ie "you are about to
delete 60 entries". Is there a way I can have it auto. say yes? And if so,
how?

Thanks for the help
 
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
 
You can also go to tools-->options-->Edit\Find tab and deselect confirm
action queries
 

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