P
Peter Ramsebner
Hi NG,
does anybody know how to get the domain name?
thanks
Peter
does anybody know how to get the domain name?
thanks
Peter
' --------------------------------------------------------------------------Sylvain Lafontaine said:Try the following:
Option Compare Database
Option Explicit
' Description: Get the user's network login name. Works with both Novell and
Microsoft networking under NT 3.51, NT4, Win95, Win98 and Win2000. Thanks to
Wade Jackson at Microsoft for some useful info.
' --------------------------------------------------------------------------Douglas J. Steele said:AFAIK, that only returns the user ID, not the domain to which the user ID
belongs.
To get the domain, see the code in
http://www.mvps.org/access/api/api0040.htm at "The Access Web".
That, of course, assumes that the original poster is looking for the user's
domain, and not the domain to which the server belongs...
--
Doug Steele, Microsoft Access MVP
(No private e-mails, please)
Thanks