How to eliminate the popup from DoCmd.RunSQL£¿

  • Thread starter Thread starter Min
  • Start date Start date
M

Min

Hi£¬When execute DoCmd.RunSQL, if it contains update query, it is always
ask for confirm. Is there anything can avoid those popups?
Thanks!
 
See help on SetWarnings

Better idea is to Execute the query statement. That way you can receive a
warning only if things go wrong:
dbEngine(0)(0).Exeucte "UPDATE ...", dbFailOnError
 
Thanks for reply!
I do need error information. I am afraid if set "DoCmd.SetWarnings False", I
will miss error message.I would like to use:
dbEngine(0)(0).Exeucte "UPDATE ...", dbFailOnError

But this line got a complie error: user definition or type not find.
What reference should I set to use dbEngine(0)(0)?

Thanks!
 
how to export tables from Msaccess2000 t0 Msaccess 1997 version in vb?

When i try to export the tables from Msaceess 2000 t0 Msaccess 1997 version using the
following syntax in vb
docmd.transferdatabase acexport,"Ms Access", Filename,actable,TableNamefrom ,tableNameto
I got an error message like "It requires an open database",
Please guide me to overcome this problem.
Thanks in advance
 

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

Similar Threads

Faststone Image viewer popups! 2
disable popup message 4
DELETE Query 3
Disappearing Data? 1
Refresh unbound textbox 5
DoCmd.RunSQL - Need help! 1
run Select Query as SQL statement 2
Access 2007 headache 1

Back
Top