Hi, hope someone can help with this... I used code from this thread:
http://www.access-programmers.co.uk/forums/showthread.php?t=40346&referrerid=20626 to display the name of the person currently logged in on the main menu.
Basically I made a module declaring a public variable, on the login formhad an afterupdate event of the username combo box assign the variable to whats selected, then in the form with the textbox that displays the username, in the onload event it assigns the variable to the text box.
The problem is, the textbox ends up showing the userID of the person logged in, not the username! i guess this is because the userID is the primary key and is a hidden field on the combo box of the login form.
Does anyone know how to make it select the username and not the userID? Need help fast, thanks!
http://www.access-programmers.co.uk/forums/showthread.php?t=40346&referrerid=20626 to display the name of the person currently logged in on the main menu.
Basically I made a module declaring a public variable, on the login formhad an afterupdate event of the username combo box assign the variable to whats selected, then in the form with the textbox that displays the username, in the onload event it assigns the variable to the text box.
The problem is, the textbox ends up showing the userID of the person logged in, not the username! i guess this is because the userID is the primary key and is a hidden field on the combo box of the login form.
Does anyone know how to make it select the username and not the userID? Need help fast, thanks!