B
BobRoyAce
I have a combo box on a form whose RowSource is as follows:
PARAMETERS gsSelectedTeams Text; SELECT DISTINCTROW [Line Names].Line FROM
[Line Names] WHERE ((([Line Names].Team)=gsSelectedTeams));
What I am attempting to do here is to have a query that references a global
variable, namely gsSelectedTeams (defined in a Module in the database and
populated in a login form). It makes sense to me that the syntax is not
correct (I get prompted to enter a parameter value for gsSelectedTeams).
However, I do not know how to do this (correct syntax). Any help would be
appreciated.
PARAMETERS gsSelectedTeams Text; SELECT DISTINCTROW [Line Names].Line FROM
[Line Names] WHERE ((([Line Names].Team)=gsSelectedTeams));
What I am attempting to do here is to have a query that references a global
variable, namely gsSelectedTeams (defined in a Module in the database and
populated in a login form). It makes sense to me that the syntax is not
correct (I get prompted to enter a parameter value for gsSelectedTeams).
However, I do not know how to do this (correct syntax). Any help would be
appreciated.