How simply get system's username in Access's aplication?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How simply get system's username in Access's aplication?
At now I starting batch file " echo %username% > username.txt"
next I'm exporting username to table in database,
I'm thinking that exist better way.
 
Copy everything in the shaded area between Code Start and Code End and paste
it into a new module (not a class module, nor a module associated with a
form or report). When you save the module, make sure you do not name it the
same as any subs or functions in that module (or in any other module).

Once you've done that, a call to fOSUserName() will return the curent
username.
 
Back
Top