OpenQuery method did not run

D

David Chase

I have code behind a button that runs queries using the OpenQuery method.
For example:

stQuery = "qappDirectDepToDedFA"
DoCmd.OpenQuery stQuery

A couple of times now, this query did not run and no error was given. Is
there any way to be sure that a query has successfully run? This query was
an append query and I was able to run it by opening it from the list of
queries in the database and it ran fine. Thank you.

David
 
M

[MVP] S.Clark

The .Execute method can return a RecordsAffected parameter.

--
HTH,

Steve Clark, Access MVP
FMS, Inc.
Professional Solutions Group
http://www.FMSInc.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Is your Access database too slow?
Are you ready to upgrade to SQL Server?
Contact us for optimization and/or upsizing!
http://www.FMSInc.com/consulting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 

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