PC Review


Reply
Thread Tools Rate Thread

current user returns admin

 
 
icccapital
Guest
Posts: n/a
 
      3rd Jan 2008
I would like to log in one of the databases the username of the person who is
making changes to a record in a database, but I noticed that access 2207
doesn't have user level security anymore and the currentuser method just
returns admin. Is there a way to do this?
 
Reply With Quote
 
 
 
 
Minton M
Guest
Posts: n/a
 
      3rd Jan 2008
On Jan 3, 10:16 am, icccapital <icccapi...@discussions.microsoft.com>
wrote:
> I would like to log in one of the databases the username of the person who is
> making changes to a record in a database, but I noticed that access 2207
> doesn't have user level security anymore and the currentuser method just
> returns admin. Is there a way to do this?


I can think of several ways:

- Implement your own user authentication to track users - not
difficult but not very secure.
- Use SQL Server Express' user security (v. secure, easy, but only one
user per 'session').
- Snag the windows login ID if that's reliable (ie. users not sharing
IDs).

-- James
 
Reply With Quote
 
icccapital
Guest
Posts: n/a
 
      3rd Jan 2008
Is there a function for getting the windows login id?

"Minton M" wrote:

> On Jan 3, 10:16 am, icccapital <icccapi...@discussions.microsoft.com>
> wrote:
> > I would like to log in one of the databases the username of the person who is
> > making changes to a record in a database, but I noticed that access 2207
> > doesn't have user level security anymore and the currentuser method just
> > returns admin. Is there a way to do this?

>
> I can think of several ways:
>
> - Implement your own user authentication to track users - not
> difficult but not very secure.
> - Use SQL Server Express' user security (v. secure, easy, but only one
> user per 'session').
> - Snag the windows login ID if that's reliable (ie. users not sharing
> IDs).
>
> -- James
>

 
Reply With Quote
 
George Nicholson
Guest
Posts: n/a
 
      3rd Jan 2008
http://mvps.org/access/api/api0008.htm

--
HTH,
George


"icccapital" <(E-Mail Removed)> wrote in message
news:AF024972-0378-40DC-BE49-(E-Mail Removed)...
> Is there a function for getting the windows login id?
>
> "Minton M" wrote:
>
>> On Jan 3, 10:16 am, icccapital <icccapi...@discussions.microsoft.com>
>> wrote:
>> > I would like to log in one of the databases the username of the person
>> > who is
>> > making changes to a record in a database, but I noticed that access
>> > 2207
>> > doesn't have user level security anymore and the currentuser method
>> > just
>> > returns admin. Is there a way to do this?

>>
>> I can think of several ways:
>>
>> - Implement your own user authentication to track users - not
>> difficult but not very secure.
>> - Use SQL Server Express' user security (v. secure, easy, but only one
>> user per 'session').
>> - Snag the windows login ID if that's reliable (ie. users not sharing
>> IDs).
>>
>> -- James
>>



 
Reply With Quote
 
icccapital
Guest
Posts: n/a
 
      3rd Jan 2008
Ok thanks. I had found that but wasn't sure if there was a prepackaged
function in the api I could use. Thanks

"George Nicholson" wrote:

> http://mvps.org/access/api/api0008.htm
>
> --
> HTH,
> George
>
>
> "icccapital" <(E-Mail Removed)> wrote in message
> news:AF024972-0378-40DC-BE49-(E-Mail Removed)...
> > Is there a function for getting the windows login id?
> >
> > "Minton M" wrote:
> >
> >> On Jan 3, 10:16 am, icccapital <icccapi...@discussions.microsoft.com>
> >> wrote:
> >> > I would like to log in one of the databases the username of the person
> >> > who is
> >> > making changes to a record in a database, but I noticed that access
> >> > 2207
> >> > doesn't have user level security anymore and the currentuser method
> >> > just
> >> > returns admin. Is there a way to do this?
> >>
> >> I can think of several ways:
> >>
> >> - Implement your own user authentication to track users - not
> >> difficult but not very secure.
> >> - Use SQL Server Express' user security (v. secure, easy, but only one
> >> user per 'session').
> >> - Snag the windows login ID if that's reliable (ie. users not sharing
> >> IDs).
> >>
> >> -- James
> >>

>
>
>

 
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
HttpContext.Current.User.Identity.Name returns wrong user name =?Utf-8?B?RC1Tb21lb25l?= Microsoft Dot NET 1 29th Jun 2011 03:47 PM
HttpContext.Current.User returns old user id Dwight Johnson Microsoft ASP .NET 1 28th Feb 2010 10:51 AM
txtbox returns current user only =?Utf-8?B?THVuZ3Rh?= Microsoft Access Form Coding 2 17th Jul 2007 09:52 PM
when replying to incoming email system admin returns user unknown =?Utf-8?B?UHJldHR5TXVjaA==?= Microsoft Outlook Discussion 1 11th Apr 2007 01:03 AM
Why does current user come up as Admin? Jeffrey K. Ries Microsoft Access Getting Started 1 2nd Apr 2004 07:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:51 AM.