Creating a field that will record the date

S

skullymatjas

how can i create a field that will record the date that i
inputed information into a different field. the general
records are all ready there, i am just puting info into a
new field

thankx
 
J

John Vinson

how can i create a field that will record the date that i
inputed information into a different field. the general
records are all ready there, i am just puting info into a
new field

thankx

In order to record the date that an existing record was modified, you
must - no option, tables don't have any usable events! - ensure that
all editing of the data is done using a Form.

Put a Date/Time field (DateModified let's say) into the table; in the
Form's BeforeUpdate event put code like

Private Sub Form_BeforeUpdate(Cancel as Integer)
<any form validation code goes here>
Me!DateModified = Date ' use Now if you want date and time
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top