My Assistant
![]() ![]() |
|
|
Jun 21 2006, 04:43 PM
Post
#1
|
|
|
UtterAccess Addict Posts: 168 |
What would case the CurrentUser fucntion to return "Admin" for anyone logged into the computer? We run WinXP Prof and Win2k Prof connected to a domain of which I have no idea. Is this something with user-level security?
Thanks. |
|
|
|
Jun 21 2006, 04:48 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 5,200 From: Denver, Colorado [USA] |
Have you implemented Access' security? Because the built-in CURRENTUSER function returns the ACCESS user, not the WINDOWS user. If you haven't implemented Access' workgroup security, everyone is an "ADMIN" user. If you want to get the name of the WINDOWS/network user logged in, see this link:
http://www.mvps.org/access/api/api0008.htm You can also use: Environ("USERNAME") although the API version is preferred by most. |
|
|
|
Jun 21 2006, 04:54 PM
Post
#3
|
|
|
UtterAccess Addict Posts: 168 |
Hah. Yeah. I just found the link Who's Logged In? and figured that much. I'll use the API. Thanks.
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 16th May 2012 - 06:57 PM |