I have a form for which the data source is a query on two databases.
Elsewhere in the system, a public variable is set when the system starts running with a user ID name (No fancy code, the public variable is declared in a dedicated module simply as PUBLIC PubUserName as String)
On my form I would like to display this variable and I created a text box whose control source is set at
=[PubUserName]
However the text box only displays #NAME. I have traced the code and the variable has a valid name whilst the form is being displayed.
There must be a simple way round this. Can anyone help please?
Elsewhere in the system, a public variable is set when the system starts running with a user ID name (No fancy code, the public variable is declared in a dedicated module simply as PUBLIC PubUserName as String)
On my form I would like to display this variable and I created a text box whose control source is set at
=[PubUserName]
However the text box only displays #NAME. I have traced the code and the variable has a valid name whilst the form is being displayed.
There must be a simple way round this. Can anyone help please?