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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide from user the results of select query called from VBA 1

Status
Not open for further replies.

WantToKnowMore

Programmer
Apr 6, 2004
31
US
I'm calling several stored queries that create temporary files from within VBA using "DoCmd.OpenQuery" calls. One of the queries is a select query.

How can I stop the results of the select query from being displayed to the user?

Thanks in advance!
 
If you don't want to display the results of a select query why launch it ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
The query is called from within another query that I am using for the desired end result. I just don't want to visibly see the results displayed to the screen.
 
A query called from another query should not be launched by the OpenQuery method as it is automagically executed by the calling query.
Again, don't launch yourself select queries you don't want the result displayed in the query window.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
You're right, and I know better too. I have a series of queries that I run that are named sequentially... so I just called the name and didn't think anymore about it. I deleted the call and it works fine.

Thanks for the reminder!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top