User that is logged in (1 Viewer)

Gunilla

Registered User.
Local time
Today, 04:12
Joined
Mar 2, 2010
Messages
32
Hi there,
how do I find out who is the user. In my form I have a field where the user him/her self write in the user name. I would like that to be automatic from the user account on the computer. I have done it before, but I don't remember the code. Please help, I am totally stuck.
Gunilla:(
Problem solved
 
Last edited:

CEH

Curtis
Local time
Today, 06:12
Joined
Oct 22, 2004
Messages
1,187
Basically...... I use a function.
Function GetUserName()
GetUserName = Environ("UserName")
End Function

You can also add GetComputerName = Environ("ComputerName")
 

Gunilla

Registered User.
Local time
Today, 04:12
Joined
Mar 2, 2010
Messages
32
Thank you
now I remember.
Gunill
 

rheeyum

Registered User.
Local time
Today, 19:12
Joined
Feb 2, 2010
Messages
35
How do I use this in a query and how I can do that if I am using a personlaize log in based on the database I have downloaded from this site (Database repository - 1st page)
 

Users who are viewing this thread

Top Bottom