Capturing Windows User Name

S

Steve W.

Is there a way to capture a user's Windows User Name from inside the VB code?
I want to save it to field to show which user made a change to a record.
I'm using Access 2007, sometimes on Window XP; sometimes Vista.
 
A

Allen_N

You can do almost anything you want with Windows. However, the difficulty is
highly variable.

I can do it in Delphi, but I haven't tried it in Windows. It's an API call.
(In Delphi it's a "wrapper" for a Windows API function.)

Search "GetUserName" in Help, the fora, or even Google. (I find Google is a
lot better than the Help in Office 2007, which sucks.)

Anyway, somebody out there has the recipe you want, but it may be more
complex than you were hoping.
 

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