A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I store which user modified a record in Access 2007?



 
 
Thread Tools Display Modes
  #1  
Old March 5th, 2010, 05:36 PM posted to microsoft.public.access
Suddi
external usenet poster
 
Posts: 1
Default How do I store which user modified a record in Access 2007?

I am new to Access and have an Access 2003 database without user-level
security that I am planning to convert to Access 2007. I would like to add
fields to my database to store create_userid and modify_userid. Can someone
help me with that please?
  #2  
Old March 5th, 2010, 06:36 PM posted to microsoft.public.access
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default How do I store which user modified a record in Access 2007?

The general concept is that you'd add fields to each table for which you
wish to keep this information.

The fields I generally add a
[CreateDate]
[CreatedBy]
[LastUpdated]
[UpdatedBy]

Then I add code in each form that displays table data. That code checks to
see if the data is a new record or is an update to an existing record, and
updates the above fields accordingly.

Another way might be the audit trail approach that Allen Browne describes
(check on-line).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Suddi" wrote in message
...
I am new to Access and have an Access 2003 database without user-level
security that I am planning to convert to Access 2007. I would like to
add
fields to my database to store create_userid and modify_userid. Can
someone
help me with that please?



  #3  
Old March 5th, 2010, 09:48 PM posted to microsoft.public.access
Mark Andrews[_4_]
external usenet poster
 
Posts: 169
Default How do I store which user modified a record in Access 2007?

You then also have a login screen you design at the beginning of the
application that has the user log in or select their name from a dropdown.
The application remembers this and uses this in the fields that track "Who
made the change". Or you try and grab the username from Active Directory
security. Use audit trail if you need to track EVERY change.

My two cents to add to Jeff's description (which is how I do it),
I would usually use an employeeID in the various tables (for CreatedBY and
UpdatedBY) and have tblEmployee,
I don't use the active directory method (but it is an approach that might
fit your situation),
Mark Andrews
RPT Software
http://www.rptsoftware.com
http://www.donationmanagementsoftware.com

"Jeff Boyce" wrote in message
...
The general concept is that you'd add fields to each table for which you
wish to keep this information.

The fields I generally add a
[CreateDate]
[CreatedBy]
[LastUpdated]
[UpdatedBy]

Then I add code in each form that displays table data. That code checks
to see if the data is a new record or is an update to an existing record,
and updates the above fields accordingly.

Another way might be the audit trail approach that Allen Browne describes
(check on-line).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Suddi" wrote in message
...
I am new to Access and have an Access 2003 database without user-level
security that I am planning to convert to Access 2007. I would like to
add
fields to my database to store create_userid and modify_userid. Can
someone
help me with that please?



  #4  
Old March 6th, 2010, 12:41 AM posted to microsoft.public.access
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default How do I store which user modified a record in Access 2007?

Mark

I actually use a blend, grabbing the network username (initials in some
implementations) on-demand, as it were. Since someone would have to have
logged into the network on the PC, the PC that's running the app uses the
username of that logged on person.

(... and if we ever have to track down someone who messed with a record, and
they claim they were not on their PC at that time, we've got them nailed for
walking off and leaving their PC unprotected!)

Regards

Jeff B.

"Mark Andrews" wrote in message
...
You then also have a login screen you design at the beginning of the
application that has the user log in or select their name from a dropdown.
The application remembers this and uses this in the fields that track "Who
made the change". Or you try and grab the username from Active Directory
security. Use audit trail if you need to track EVERY change.

My two cents to add to Jeff's description (which is how I do it),
I would usually use an employeeID in the various tables (for CreatedBY and
UpdatedBY) and have tblEmployee,
I don't use the active directory method (but it is an approach that might
fit your situation),
Mark Andrews
RPT Software
http://www.rptsoftware.com
http://www.donationmanagementsoftware.com

"Jeff Boyce" wrote in message
...
The general concept is that you'd add fields to each table for which you
wish to keep this information.

The fields I generally add a
[CreateDate]
[CreatedBy]
[LastUpdated]
[UpdatedBy]

Then I add code in each form that displays table data. That code checks
to see if the data is a new record or is an update to an existing record,
and updates the above fields accordingly.

Another way might be the audit trail approach that Allen Browne describes
(check on-line).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Suddi" wrote in message
...
I am new to Access and have an Access 2003 database without user-level
security that I am planning to convert to Access 2007. I would like to
add
fields to my database to store create_userid and modify_userid. Can
someone
help me with that please?





  #5  
Old March 13th, 2010, 05:44 PM posted to microsoft.public.access
De Jager
external usenet poster
 
Posts: 393
Default How do I store which user modified a record in Access 2007?


"Suddi" wrote in message
...
I am new to Access and have an Access 2003 database without user-level
security that I am planning to convert to Access 2007. I would like to
add
fields to my database to store create_userid and modify_userid. Can
someone
help me with that please?


  #6  
Old March 17th, 2010, 01:40 PM posted to microsoft.public.access
joelgeraldine
external usenet poster
 
Posts: 201
Default How do I store which user modified a record in Access 2007?

,c, ;;::!§

"Jeff Boyce" a écrit dans le message de groupe de
discussion : ...
The general concept is that you'd add fields to each table for which you
wish to keep this information.

The fields I generally add a
[CreateDate]
[CreatedBy]
[LastUpdated]
[UpdatedBy]

Then I add code in each form that displays table data. That code checks
to see if the data is a new record or is an update to an existing record,
and updates the above fields accordingly.

Another way might be the audit trail approach that Allen Browne describes
(check on-line).

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Suddi" wrote in message
...
I am new to Access and have an Access 2003 database without user-level
security that I am planning to convert to Access 2007. I would like to
add
fields to my database to store create_userid and modify_userid. Can
someone
help me with that please?



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.