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

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?
 
G

Guest

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
 

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