disable popup message

  • Thread starter Thread starter Andrew Chan
  • Start date Start date
A

Andrew Chan

I have use DoCmd.RunSQL to insert multiple record into Access table.
Everytime a popup message asking am I willing to insert it. Can I disable
this popup so I don't need to answer it.
Many Thanks
 
Before your runSQL statement add the following
DoCmd.SetWarnings False
and then after your statement put
DoCmd.SetWarnings True
 
Hi Andrew,

I have a Word document, which I will try sending to your indicated e-mail
address. This document shows several ways to deal with this issue.

Tom
________________________________________

:

I have use DoCmd.RunSQL to insert multiple record into Access table.
Everytime a popup message asking am I willing to insert it. Can I disable
this popup so I don't need to answer it.
Many Thanks
 
Andrew,

Instead of:

DoCmd.RunSQL strSQl

you can use:

CurrentDb.Execute strSQL, dbFailOnError

which will execute the SQL without the prompts to confirm.

HTH,
Nikos
 

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