Default User Name

  • Thread starter Thread starter billy
  • Start date Start date
B

billy

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

Thanks.,
 
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
 
Back
Top