Hi everyone,
I have a simple login form that checks the value entered in text box with prestored data in a hidden table. Once the login button is pressed, the code checks the user name matches one in the table, and if it does, the form closes and the database opens. All works well.
What I would like to achieve is when the login button is pressed, I want the entered user name in the form text box to be captured/copied and set as the Application.CurrentUser. This is so that the default text of 'admin' changes to the currently logged in user name when the Application.CurrentUser command is utilised.
Does anyone have a simple code example or method that would achieve this? I've not been able to find anything concrete on this so far.
Thanks very much
I have a simple login form that checks the value entered in text box with prestored data in a hidden table. Once the login button is pressed, the code checks the user name matches one in the table, and if it does, the form closes and the database opens. All works well.
What I would like to achieve is when the login button is pressed, I want the entered user name in the form text box to be captured/copied and set as the Application.CurrentUser. This is so that the default text of 'admin' changes to the currently logged in user name when the Application.CurrentUser command is utilised.
Does anyone have a simple code example or method that would achieve this? I've not been able to find anything concrete on this so far.
Thanks very much