Heenan, Lambert
Lambert.Heenan at AIG.com
Tue Jun 12 08:48:40 CDT 2007
The Environ() function has been available is all versions of Access since 1.0, but that's in a Windows setting. Are you running Access on a Mac in a Windows emulator? In which case Environ should work, but only if your virtual windows machine actually sets an environment variable called UserName and/or another one called ComputerName. Those variables are typically set by login scripts. If they are not set then you have to use the API calls to retrieve the information. If you are running the native Mac version of Access (is there such a beast?) then I can offer no help, not knowing any Mac APIs. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, June 12, 2007 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Track PC Number Anyone know which versions of Access the Environ() function is supported in? All help says is "Not available on the Macintosh". I've been using a few hundred lines of Windows API calls and the like to do what this function can do in one line. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters stgComputerName = Environ("ComputerName") -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com