PC Review


Reply
Thread Tools Rate Thread

Re: CurrentUser function

 
 
Jack MacDonald
Guest
Posts: n/a
 
      26th Jun 2003
There is nothing inherent with Access that will do that for you, but
you can easily code it into a form by using the BeforeUpdate event of
your form. Just populate the appropriate field with the CurrentUser()
function.


On Wed, 25 Jun 2003 17:24:58 -0700, "Mary" <(E-Mail Removed)>
wrote:

>I'd like to add a field to a table that automatcally adds
>the CurrentUser in a secure database. Each data entry
>clerk has a separate User Account. To audit accuracy, I
>need to know who entered a record. I'll also need to
>know who was the last employee to update a record.
>
>Any suggestions?
>Thanks,
>Mary



=======================================================
Jack MacDonald
remove UPPERCASE LETTERS from email address
Vancouver, B.C. Canada
Info about MSAccess user-level security
www.geocities.com/jacksonmacd
 
Reply With Quote
 
 
 
 
Lynn Trapp
Guest
Posts: n/a
 
      26th Jun 2003
Mary,
When you say "updates are made using queries", do you mean users run the
query and then manually modify and/or add to the data pulled in the query?
If so, you should consider creating forms that use those queries as a Record
Source, then you can use the approach that Jack suggested. Forms are the
only objects that have Event Procedures that you can hook to do what you are
wanting.

--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm



"Mary" <(E-Mail Removed)> wrote in message
news:09dd01c33bd0$f336b130$(E-Mail Removed)...
> That will help, but some updates are made using queries.
> Any way I could enter code to track those updates?
> Thanks!
> Mary
> >-----Original Message-----
> >There is nothing inherent with Access that will do that

> for you, but
> >you can easily code it into a form by using the

> BeforeUpdate event of
> >your form. Just populate the appropriate field with the

> CurrentUser()
> >function.
> >
> >
> >On Wed, 25 Jun 2003 17:24:58 -0700, "Mary"

> <(E-Mail Removed)>
> >wrote:
> >
> >>I'd like to add a field to a table that automatcally

> adds
> >>the CurrentUser in a secure database. Each data entry
> >>clerk has a separate User Account. To audit accuracy,

> I
> >>need to know who entered a record. I'll also need to
> >>know who was the last employee to update a record.
> >>
> >>Any suggestions?
> >>Thanks,
> >>Mary

> >
> >
> >=======================================================
> >Jack MacDonald
> >remove UPPERCASE LETTERS from email

> address
> >Vancouver, B.C. Canada
> >Info about MSAccess user-level security
> >www.geocities.com/jacksonmacd
> >.
> >



 
Reply With Quote
 
Mary
Guest
Posts: n/a
 
      27th Jun 2003
I have set up forms for data entry, but the clerks are
able to use the queries to update data as well. They run
the query which prompts them for a specific employee,
then update the necessary information. They should be
using the form for updates, but they sometimes use the
query. (I think they're aware of the tracking when they
use the form). I've been asked to audit the database and
find out where the data entry errors are originating. As
long as they use the form I'm okay, but I'd like to be
able to audit any updates, whether it's in a table, query
or form. Do the newer verions of Access have this
capability? We're using Access 97 now, but have Access
2000 available if that would help.
Thanks again,
Mary

>-----Original Message-----
>Mary,
>When you say "updates are made using queries", do you

mean users run the
>query and then manually modify and/or add to the data

pulled in the query?
>If so, you should consider creating forms that use those

queries as a Record
>Source, then you can use the approach that Jack

suggested. Forms are the
>only objects that have Event Procedures that you can

hook to do what you are
>wanting.
>
>--
>Lynn Trapp
>MS Access MVP
>www.ltcomputerdesigns.com
>Access Security: www.ltcomputerdesigns.com/Security.htm
>
>
>
>"Mary" <(E-Mail Removed)> wrote in message
>news:09dd01c33bd0$f336b130$(E-Mail Removed)...
>> That will help, but some updates are made using

queries.
>> Any way I could enter code to track those updates?
>> Thanks!
>> Mary
>> >-----Original Message-----
>> >There is nothing inherent with Access that will do

that
>> for you, but
>> >you can easily code it into a form by using the

>> BeforeUpdate event of
>> >your form. Just populate the appropriate field with

the
>> CurrentUser()
>> >function.
>> >
>> >
>> >On Wed, 25 Jun 2003 17:24:58 -0700, "Mary"

>> <(E-Mail Removed)>
>> >wrote:
>> >
>> >>I'd like to add a field to a table that automatcally

>> adds
>> >>the CurrentUser in a secure database. Each data

entry
>> >>clerk has a separate User Account. To audit

accuracy,
>> I
>> >>need to know who entered a record. I'll also need to
>> >>know who was the last employee to update a record.
>> >>
>> >>Any suggestions?
>> >>Thanks,
>> >>Mary
>> >
>> >

>>

>=======================================================
>> >Jack MacDonald
>> >remove UPPERCASE LETTERS from email

>> address
>> >Vancouver, B.C. Canada
>> >Info about MSAccess user-level security
>> >www.geocities.com/jacksonmacd
>> >.
>> >

>
>
>.
>

 
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
using the CurrentUser function in a query. =?Utf-8?B?UC4gU2NhcmFt?= Microsoft Access Queries 4 5th Jun 2006 03:33 PM
CurrentUser() function not working =?Utf-8?B?QW5kcmUgU2tlZW4=?= Microsoft Access 12 29th Jun 2004 02:36 AM
Pass through queries - CurrentUser() function? Ling Microsoft Access Queries 1 19th Nov 2003 12:50 PM
CurrentUser Function Nick Microsoft Access Security 1 18th Jul 2003 12:04 AM
Re: CurrentUser function debbie Microsoft Access 0 9th Jul 2003 06:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:37 PM.