Counting amount of times a record is amended

J

Jaycee

I am trying to set up a form so that when the record is
amended a label with a count of times is changed.
Any ideas would be grateful
Using Access 97
 
J

JohnFol

Private Sub Form_AfterUpdate()
Me.txtCounter.Value = Me.txtCounter.Value + 1
End Sub
 
H

HSalim

You will have to add a column or two to the table
for example, you could timesModified and ModifiedDate,
and update these values each time an update is made.

Alternatively, you could add a history table that stores the previous values
You could then display the sum of amendments for this record on your form

This is a more complicated option but is used in situations where audit
trails are required.

HS
 

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