M
Micosoft
Is it possible to use a global variable as a criteria in a query
Example:
I have a table:
year stuff
---------------------
2002 things
2003 more things
2003 additional stuff
2004 some stuff
2005 nothing yet
2004 last stuff
I have a query which has "2004" as the criteria for the year col, I want be
able to change the criteria programatically using a global variable defined
in a module.
But when I try to run the query by putting the variable name in, it keeps
asking me to type in a value.
Any help would be much appreciated.
Brian
Example:
I have a table:
year stuff
---------------------
2002 things
2003 more things
2003 additional stuff
2004 some stuff
2005 nothing yet
2004 last stuff
I have a query which has "2004" as the criteria for the year col, I want be
able to change the criteria programatically using a global variable defined
in a module.
But when I try to run the query by putting the variable name in, it keeps
asking me to type in a value.
Any help would be much appreciated.
Brian