Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check to see if Query is already Open

Status
Not open for further replies.

jpalmer150

Technical User
Jul 1, 2003
46
0
0
US
I'm trying to program my macro to know whether a query is already open before it attempts to re-run the query.

Anyone know the easiest way to do this?

 
Something like this ?
If CurrentData.AllQueries("NameOfQuery").IsLoaded Then
MsgBox "query is already open"
End If

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top