Type SET at a command prompt to see the system
variables that are available on your system. On Win2K
or Win XP you would expect to see USERDOMAIN
if there is a domain. If there is a domain, there wouldn't
be a workgroup, would there? Assuming you mean a
network workgroup, rather than an Access Workgroup.
There won't be an environ variable for an Access
Workgroup unless you create one. You could get
the value from the registry, or from the Access Application
object.
(david)
Quote:
> Records stored in one of my databases contain the user name and computer
> name
> taken from system variables:
> idrec![UserName] = Environ$("Username")
> idrec![Computer] = Environ$("ComputerName")
> Are there system variables for workgroup and domain as well?
> David Macias