Show who you are logged in as?

surfrus, I think you still have not figured out what/how to do it.. What I think you have (based on your screencaps) is that the ID (which we have been talking about) is actually a UserName String.. so replacee the DLookUp with the following..
Code:
=DLookUp("[[COLOR=Blue]UserNameField[/COLOR]]","[User]","[[COLOR=Blue]UserName[/COLOR]]='" & [Forms]![frmLogin]![[COLOR=Blue]LoginTextBox[/COLOR]] & "'")
Please change all Blue Bits, also make sure you have the Login Form is made invisible NOT CLOSED
 
how do i change too invisible and check it isnt closed?
 
Hi,
it is a very simple issue to show the logged user name in the current form,
I have user login form, when I click the button and the code checks the password and user name is meeting the condition then the login form will be hidden and the main form will show, then i have a unbound combo box I set the value for it
=[Forms]![User_frm_Login]![UserName]
and it works like charm,
I hope that could help you.
 
well what you need to do is, on your command button on click event which loads the next form you need to add this line.
Me.Visible = False
 

Users who are viewing this thread

Back
Top Bottom