-----Original Message-----
Go to the Control Panel and click on the System icon. At the bottom of the
Advanced tab, there's a button labelled "Environment Variables". Click on
it, and it'll show all of the variables defined.
Chris: Just a word of caution. Environment variables can be reset relatively
easily, so it's generally not considered to be a good idea to rely on them
for anything, especially for things like Username and Computername. The API
calls are far more reliable. See
http://www.mvps.org/access/api/api0008.htm
and
http://www.mvps.org/access/api/api0009.htm at "The Access Web" for the
code for those two values.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Config.sys and
Autoexec.bat. that "USERNAME"
and
.