I have one Access application which accesses 3 environments (DEV; TEST; PROD). An environment variable is set upon login to programmatically connect to the correct database.
We would like the user to see which environment they are connected to in each form they use. One thought is to set the color of the title bar, but that impacts all windows.
I have been attempting to put the environment in the form caption dynamically by using the environment variable.
Setting an Event Procedure in the Form Properties such as On Current or On Open such as:
Me.Caption = Me.Caption & " : " & Me!txtEnvName.Value
.... in a dynamic process upon signin to the application is what I would like to do.
Manually changing all the forms in the application is not a desired option.
Here is a sample of what a form would look like in the 3 different evironments:
Customers: DEV
//////////
Customers: TEST
/////////
Customers: PRODUCTION