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!

Run a Query but not open ?????

Status
Not open for further replies.

JONBOY74

Technical User
Sep 11, 2001
36
0
0
US
Hi all

I have a query that I wish to run but not open, how do I do this???

Thanks Jon
 
What the query does is dependent on what TYPE of query it is. A SELECT query will always open a "datasheet" view of the data it pulls out. An ACTION query will 'run', but you won't necessarily see anything happen.

What KIND of query do you have?
Remember, you're unique - just like everyone else
You're invited to visit another free Access forum:
or my site,
 
Jon - there's actually several ways you can do this but try this - add this bit of code to a command button on a form

docmd.openquery ("query name")

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top