I have an MS Access 2010 application that I deploy as an accdr file along with Access 2010 runtime.
At startup in this application I need to determine if the application is being run by someone remotely on my Terminal Server. The computer name of the terminal server is "RDS01"
The line of code to check this is as follows:
If Environ("computername") = "RDS01" Then
When the application is run on any computer other than my Terminal Server the line executes properly, determining the name of the computer.
But, when the application is run on my Terminal Server this line of code fails with the following message:
Undefined function 'Environ' in expression
Can someone tell me why this is happening?