PC Review


Reply
Thread Tools Rate Thread

Add log when modified

 
 
=?Utf-8?B?TW9udHNl?=
Guest
Posts: n/a
 
      27th Jul 2007
I have a table called logs with the following fields:
LogID: autonumeric
ApplicationID
FieldModified
DateModified

And I would like that every time someone modifies the table Applications, a
log is created that tells me which application was modified [ApplicationID],
which field from the Application Table [FieldModified] and the date it was
modified [DateModified]

Could anyone provide me with the code that would allow making this possible?

Thank you for our help.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIEJ1cmtlIGluIE5vdmk=?=
Guest
Posts: n/a
 
      1st Aug 2007
I don't think there's anyway to do that automatically - there's no 'On Table
Update' event procedure or anything like that. It seems that you just need
to go to the VBA code anwhere that table gets updated and add code there to
add a new record to the log table. I don;t see any other way of doing it.
You'd probably want to create a 'global' Function called something like
WriteLogRecord and pass parameters to it that tell it the Application ID and
Field modified (the function would just use Date() for the date modified).

"Montse" wrote:

> I have a table called logs with the following fields:
> LogID: autonumeric
> ApplicationID
> FieldModified
> DateModified
>
> And I would like that every time someone modifies the table Applications, a
> log is created that tells me which application was modified [ApplicationID],
> which field from the Application Table [FieldModified] and the date it was
> modified [DateModified]
>
> Could anyone provide me with the code that would allow making this possible?
>
> Thank you for our help.
>

 
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
See ALL Modified Dates (not just Last Modified)? RJRJ Microsoft Word New Users 1 11th Jul 2011 05:11 AM
Modified by on toolbaree@gmail.com Microsoft Excel Discussion 0 23rd May 2007 03:35 PM
Restore Modified Files Back To Before They Were Modified. =?Utf-8?B?UnplcA==?= Windows XP Help 2 4th Nov 2005 07:35 AM
Last Modified Simon Dowse Microsoft Access Forms 4 20th Feb 2004 02:00 PM
Strange Blue Screen/file modified (not modified) zman Windows XP New Users 2 16th Sep 2003 09:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:55 PM.