Default User Name

B

billy

How can I set the default value of a field to the login
user in Data Access Page?

Thanks.,
 
N

Newbie

Will the following work for you

Function fOSUserName() As String
fOSUserName = Environ("USERNAME")
End Function

frm.txtUserName = fOSUserName

this sets the field txtUserName to the windows login (Win 2k)

HTH
Al
 
Top