StarScream
Technical User
Passing Environ("Username"
value to a query-based form
I originally had several forms and reports based on the same query which asked you to input your name. What I'd like to do is use the Environ("Username"
function to determine who the person is and then set the query based upon that value. (Since we're on a network, we all have to login anyway, and it avoids having people type anything in).
How do I pass the value of Environ function to the report or form thats based on the query? Do I remove the field from the query that asks for the name? If so, how does the report or form know to list only records of the person?
I'm trying to do this as code. I tried using it on the OnOpen or OnLoad functions, but it seems to load the query input first. Any suggestions?
PJ
I originally had several forms and reports based on the same query which asked you to input your name. What I'd like to do is use the Environ("Username"
How do I pass the value of Environ function to the report or form thats based on the query? Do I remove the field from the query that asks for the name? If so, how does the report or form know to list only records of the person?
I'm trying to do this as code. I tried using it on the OnOpen or OnLoad functions, but it seems to load the query input first. Any suggestions?
PJ