Re: Logon

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Van T. Dinh (VanThien.Dinh_at_discussions.microsoft.com)
Date: 01/17/05


Date: Tue, 18 Jan 2005 03:45:18 +1100

I assume you are talking about CurrentUser in Microsoft Access???

If you don't use Access Security, the CurrentUser Method _always_ returns
"Admin" (note that this is Access user "Admin" which has nothing to do with
your local PC "Admin"). The reason is that without Access security, Access
users will use the default user which is "Admin".

If you are trying to get your Windows network LogIn, try The Access Web:

http://www.mvps.org/access/api/api0008.htm

-- 
HTH
Van T. Dinh
MVP (Access)
"Alvin Hansen" <AlvinHansen@discussions.microsoft.com> wrote in message
news:1D568023-B266-40C6-803C-04E6C47E396D@microsoft.com...
> Hi!!
>
> I try to find my username
> i logon to a server with a name
> but on my Pc i am "Admin" so if i use
> currentusername i get "admin" and not my name i
> use to logon to the server, is there a way to grab the username??
>
> Best regards alvin
>


Relevant Pages

  • Re: User can only edit own enteries
    ... currentuser() will only work if security is set up otherwise currentuser ... will always be admin. ... If you set up security, each user will have their own userid. ...
    (microsoft.public.access.security)
  • Re: zeit- und =?utf-8?Q?benutzerabh=E4=AE=A7iges?= Beenden von Access
    ... > Der currentuser ist bei mir admin, ... Prev by Date: ... Next by Date: ...
    (microsoft.public.de.access)
  • Re: SetProperty
    ... In The OnCurrent event of the form put this: ... Harvard wrote: ... this field to be disabled unless CurrentUser = "Admin". ...
    (microsoft.public.access.macros)
  • Re: Checkbox on a form can ony be set/reset by specitic user
    ... more and am not using Admin anymore. ... >But I question why you are testing for CurrentUser() ... not a member of the Admins Group. ...
    (microsoft.public.access.security)
  • SetProperty
    ... I have a checkbox field named Highlight. ... this field to be disabled unless CurrentUser = "Admin". ... And should i be using a macro or some other method? ...
    (microsoft.public.access.macros)