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

Query Criteria Set up In Module

Status
Not open for further replies.

samn265

Technical User
Feb 12, 2002
35
US
How do you setup criteria in the query to the module? Would you give an example?
Thanks,
Sam
 
Its easier to just change the entire sql of the query in a module. This should get you going...

Dim qryQuery As QueryDef
Dim qrySQL As String

Set qryQuery = CurrentDb.QueryDefs("QueryName")

qrySQL = "select name from msysobjects"

qryQuery.SQL = qrySQL
 
Thanks for answering. Could you be more clearer on the example.
Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top