Obtaining NT username via VBA

S

Steve T

We're running Access2002 on a Windows2000 network.

What code would I use to obtain a network username, or is it even possible?

Thanks in advance.
 
G

Guest

Steve,

Try this:

mid(vba.Environ(25),instr(1,vba.Environ(25),"=")+1)

Jake


----- Steve T wrote: -----

We're running Access2002 on a Windows2000 network.

What code would I use to obtain a network username, or is it even possible?

Thanks in advance.
 

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