Auto populate textbox with current username.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If I have a form with a text box called txtInspector, is it possible to
automatically populate the text box with whoever is logged on to the
computer?

Dave
 
This is exactly what I need, can you provide further instructions on how I
should apply this to my form. Does this apply to the whole form, or just the
text box I want to populate? The text box is named txtInspector.

Thank you
Dave
 
I am not sure what you meant by "apply to this Form"???

If you simply want to display the Windows LogOnID in a TextBox on the Form,
set the ControlSource of the TextBox to:

= fOSUserName()

(including the equal sign)
 

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

Similar Threads

Last Modified By in a cell by user 3
Auto populate 3
Text Box populate 3
Access 2 Digit year in Access Text Box 3
Continuous Form - Populate unbounded field 1
use a list box to populate a text box 6
auto fill 4
Populates 1

Back
Top