If you are running an MSquery, I think you will need to extract the SQL staement and build it freehand within the code 'cos if not, all the fields / parameters / criteria etc are contained within the dqy file and therefore not referenced in the macro itself
HTH
Geoff
Aaaaaaaah - sorry - thought you were in excel. Much easier in Access. If the parameter is to be driven by an entry on a form just use formname.controlname.value in the criteria pane in the query and then just run the query as normal.
It very much depends on how you are getting your parameter variable tho
Rgds
Geoff
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.