Darrenc
Registered User.
- Local time
- Today, 13:24
- Joined
- Apr 30, 2004
- Messages
- 62
I promise i've searched the boards and thought i've found the answer a couple of time, and i still can't get this to work.
I've created a module that looks up the users computer login name and then converts that name to their proper name.
The module works the way i'd expect it to.
I want to use the strUser variable to populate various text boxes spread between different forms.
I've tried various methods, and as you'll see, i think i'm way off
Thanks for you time.
Darren
I've created a module that looks up the users computer login name and then converts that name to their proper name.
Code:
Public Function LoginName()
Dim strUser As String
Dim strUserLogin As String
strUserLogin = Environ("Username")
Select Case strUserLogin
Case "darrenc"
strUser = "Darren Scott"
End Select
End Function
I want to use the strUser variable to populate various text boxes spread between different forms.
I've tried various methods, and as you'll see, i think i'm way off
Code:
Private Sub ExtRaisedBy_DblClick(Cancel As Integer)
LoginName
Me.ExtRaisedBy.Text = strUser
End Sub
Thanks for you time.
Darren
Last edited: