How do I used the results of a Module to populate a text box on a

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

Guest

I have a module that finds the windows user id. I want to be able to call
that module and have it populate a text box on a form with the user id that I
use for data entry. I have tried:

Private Sub Test_1_AfterUpdate()

Dim stmodule As String
stmodule = fOSUserName()


Me.IB.Value = stmodule

Where fOSUserName() is the module (Yes I borrowed the code).

Any suggestions?
 
Hi

Go into the properties of the text box - Data tab - and type the following
for the Control Source (including the equals sign)

= fOSUserName()


hth

Andy Hull
 
Back
Top