OK. Here's one method. Change all control names as appropriate
1. Create a Public variable in a standard module
Code:
Public strCurrentUser as String
2. on the login form,
Code:
Private Sub cmdLogin_Click()
strCurrentUser=Me.txtUserName
End Sub
3. Add this code to a standard module
Code:
Function GetCurrentUser()
GetCurrentUser=strCurrentUser
End Function
Now you can get the current user at any time by just calling the function
Code:
EnteredBy = GetCurrentUser
Hopefully you can do the rest yourself