Button on Message Box

G

Guest

I have used some VBA code on one of my forms to to automatically append data
to another table when a certain value is entered. Now whenever i add data
that will be appended i get a message box that asks me to confirm the append.
Without completely disabling warning boxes, is there any way to have it so
that "yes" is automatically selected when this message box pops up (i know
that "Yes" is the default , as that is highlighted box). Thank you for any
help you can provide.
 
K

kingston via AccessMonster.com

Try this to bypass the message:

DoCmd.SetWarnings False
Append
DoCmd.SetWarnings True
 

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

Top