Prefill NT Log on ID into field on a form

H

Henry

Please, How do I prefill NT log-on information into a
field on a form?

Not the username but logon ID
 
D

Douglas J. Steele

"didn't work" isn't much to go on.

What happened when you tried it? Did you get the wrong ID on the form? Did
you get an error message? (If so, what was it?) Did black smoke start
billowing out of your computer?

A few basics. I assume you copied what's between Code Start and Code End
into a new module. I just noticed that the instructions on that page could
be misinterpretted. You cannot name the code module fOSUserName: modules
can't be named the same as the functions (or subs) contained in them. If you
did name the module fOSUserName, rename the module.

If that doesn't solve the problem, did you include the equal sign when you
set the ControlSource for the text box? You need to.
 

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