Good afternoon
I have a userform that I have managed to get to show a persons ID when they open a userform, but is there anyway I can get the userform to show the persons name as well?
I have a table that has the agentID, AgentName and Department, but how do I get this to load in the "Form_Open" below
The source table has the above headings and I would need the AgentName to show in Text23
thanks in advance
Gavin
I have a userform that I have managed to get to show a persons ID when they open a userform, but is there anyway I can get the userform to show the persons name as well?
I have a table that has the agentID, AgentName and Department, but how do I get this to load in the "Form_Open" below
The source table has the above headings and I would need the AgentName to show in Text23
Code:
Private Sub Form_Open(Cancel As Integer)
Dim Username As String
Username = Environ("USERNAME")
tb_racf.Value = Username
thanks in advance
Gavin