PC Review


Reply
Thread Tools Rate Thread

How to capture the User authentication user name using Access 2000

 
 
Joel
Guest
Posts: n/a
 
      17th Sep 2003
I need to capture the Windows User Name and store it for
future reference using Access 2000. In a form, I have a
text field with a default value of =CurrentUser() and the
application returns "Admin" regardless who the user is.

Does any one have any information or have the code to
capture the user name from the Windows authentication
user name, used when login into the network.

Your help is much appreciated, Joel.

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      17th Sep 2003
Check http://www.mvps.org/access/api/api0008.htm at "The Access Web"

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele


"Joel" <(E-Mail Removed)> wrote in message
news:074401c37d5f$6dac9d60$(E-Mail Removed)...
> I need to capture the Windows User Name and store it for
> future reference using Access 2000. In a form, I have a
> text field with a default value of =CurrentUser() and the
> application returns "Admin" regardless who the user is.
>
> Does any one have any information or have the code to
> capture the user name from the Windows authentication
> user name, used when login into the network.
>
> Your help is much appreciated, Joel.
>



 
Reply With Quote
 
Wayman Bell
Guest
Posts: n/a
 
      20th Sep 2003
In my table I set the default value for the field to;

=Environ("Username")

In forms I use a label

In the forms propertíes, On Open, I have proceedure:

lblText.Caption = environ("Username")

Works great

WB

"Joel" <(E-Mail Removed)> wrote in message
news:074401c37d5f$6dac9d60$(E-Mail Removed)...
> I need to capture the Windows User Name and store it for
> future reference using Access 2000. In a form, I have a
> text field with a default value of =CurrentUser() and the
> application returns "Admin" regardless who the user is.
>
> Does any one have any information or have the code to
> capture the user name from the Windows authentication
> user name, used when login into the network.
>
> Your help is much appreciated, Joel.
>



 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      20th Sep 2003
That's not particularly secure: it's trivial to reset environment variables.

The API approach is far better.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele


"Wayman Bell" <(E-Mail Removed)> wrote in message
news:CXLab.388753$cF.118886@rwcrnsc53...
> In my table I set the default value for the field to;
>
> =Environ("Username")
>
> In forms I use a label
>
> In the forms propertíes, On Open, I have proceedure:
>
> lblText.Caption = environ("Username")
>
> Works great
>
> WB
>
> "Joel" <(E-Mail Removed)> wrote in message
> news:074401c37d5f$6dac9d60$(E-Mail Removed)...
> > I need to capture the Windows User Name and store it for
> > future reference using Access 2000. In a form, I have a
> > text field with a default value of =CurrentUser() and the
> > application returns "Admin" regardless who the user is.
> >
> > Does any one have any information or have the code to
> > capture the user name from the Windows authentication
> > user name, used when login into the network.
> >
> > Your help is much appreciated, Joel.
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with user authentication (2000<->NT) =?Utf-8?B?Tmlscw==?= Microsoft Windows 2000 Security 1 1st Jul 2005 06:33 PM
After joining the 2000 AD Domain user authentication is slow. =?Utf-8?B?QUQgRG9tYWluIHVzZXIgYXV0aGVudGljYXRpb24g Windows XP Networking 1 3rd May 2005 02:10 PM
Getting access to WIn XP User Info under new WIndows 2000 User Account Rafael Microsoft Windows 2000 Active Directory 1 5th Aug 2004 11:25 PM
User authentication with IE6 on Windows 2000 David Shriner Windows XP Internet Explorer 0 25th May 2004 03:17 PM
Help on Capturing Windows authentication user name with Access 2000 Joel Microsoft Access Getting Started 1 17th Sep 2003 10:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:02 PM.