Date and Time Stamp for a Field Being Modified 
Author Message
 Date and Time Stamp for a Field Being Modified

When I use a form to edit records, I want to create a
field that automatically records the date and time each
time a particular field (not the record)is modified.

PLEASE and Thank you!



Sun, 24 Apr 2005 04:08:03 GMT  
 Date and Time Stamp for a Field Being Modified


Quote:
>When I use a form to edit records, I want to create a
>field that automatically records the date and time each
>time a particular field (not the record)is modified.

>PLEASE and Thank you!

Suppose you have a twitchy user who opens a form, and makes a change
to a text field, backspaces, types again, backspaces, types again,
backspaces, types again, mouseclicks, types over...

Do you want to record each and every keystroke? If so, use the
control's Change event and append a record to a changes table with
Now() being loaded to a date/time field. This table will get very,
very big very, very quickly and - IMHO - will be of VERY little use.

A less drastic version would use the control's AfterUpdate event. If
the user changes a field, moves off it, moves back to the field and
changes it again, this will write each completed change.

Note that a field is not actually changed in the table until the
record is saved. Changes made on a form that don't get saved have NO
effect on the database, and I fail to see any point in tracking them!

                  John W. Vinson[MVP]    
    Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public



Sun, 24 Apr 2005 05:43:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Modify File Date/Time Stamp with VB?

2. Modify Time Stamp of a Directory?

3. Modify Time Stamp of a Directory?

4. Modify Time Stamp of a Directory?

5. Modifying the Last Modified Date and Time

6. Matching system date/time with field date/time

7. ADO with Access Date/Time field not storing the time, just the date

8. Format date/time in DTPicker to display AM/PM or 24 hour time

9. Return File Date Time stamp

10. Access 7.0/8.0 (Win95) - How to retrieve a file's date/time stamp

11. (Q) Help with SelectDir and Date/Time stamp

12. Help! Object date/time stamp screw-up

 

 
Powered by phpBB® Forum Software