Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Log-in Name as Default

Status
Not open for further replies.

awinkler

MIS
Sep 10, 1999
1
0
0
US
How do I use the Log-In Name (from a Workgroup) as a Default value for a field on a form? [sig][/sig]
 
In the Form_Load event

Me.txtUser.DefaultValue = Chr$(34) & CurrentUser & Chr$(34)

where txtUser is replaced by the name of your field [sig]<p>Keith C Taylor<br><a href=mailto:TekTips@kctaylor.co.uk>TekTips@kctaylor.co.uk</a><br><a href= Information Gardener</a><br>The C stands for Computer![/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top