View Full Version : default access messages on query run


definewebsites
11-18-2007, 08:59 AM
Hi there,

I have an access database in which I am updating a table from a form using visual basic for access. I have got the update to work, however before the application appends the table, it asks a question "You are about to append a row" then an option for "yes or no"

I have a custom message that appears after the appending, but I do not want the message in bold above to appear at all. Does anyone know how I can suppress that message?

Thanks

pbaldy
11-18-2007, 09:50 AM
You can use CurrentDb.Execute instead of DoCmd.RunSQL.

definewebsites
11-18-2007, 09:53 AM
Thanks alot for the tip, I will give it a shot and feedback on what happens..

Cheers

definewebsites
11-18-2007, 10:36 PM
Thank you for your assistance. I used your suggestion in conjunction with dbFailOnError and it worked.
I do appreciate

Cheers

pbaldy
11-19-2007, 08:15 AM
No problem; glad we got it sorted out.