Obtaining NT username via VBA

  • Thread starter Thread starter Steve T
  • Start date Start date
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.
 
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.
 
Back
Top