Feb 13, 2002 #1 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
Feb 13, 2002 #2 tomschafer Technical User Aug 9, 2001 474 US 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 Upvote 0 Downvote
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
Feb 14, 2002 Thread starter #3 samn265 Technical User Feb 12, 2002 35 US Thanks for answering. Could you be more clearer on the example. Thanks again. Upvote 0 Downvote