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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top