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

Parameter Query

Status
Not open for further replies.

TheRealDeal

Technical User
Nov 16, 2001
187
US
Is it possible to pass parameter values to a query that is not bound to a form or report? For instances, say I have a query and it has [Start Date] and [End Date]; can I DoCmd.OpenQuery "qrySomething", ...([Start Date] = a starting date) and ([End Date] = a ending date).
 
yes, have a parameter query...

although if you want to automatically pass in the parameters, then you'll have to open the querydef, set the parameters, then run the query...

--------------------
Procrastinate Now!
 
Would you happen to have an example to get me started in the right direction?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top