UtterAccess.com
Thank you for your support!       Follow UtterAccess on Twitter
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> CurrentUser returns "Admin"    
 
   
kiimera
post 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.
Go to the top of the page
 
+
schroep
post 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.
Go to the top of the page
 
+
kiimera
post 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 the top of the page
 
+

Reply to this topicStart new topic

 



RSS Go to Top  ·  Lo-Fi Version Time is now: 16th May 2012 - 06:57 PM