Counting additions to records

J

jaycee

I am trying to set up a counter on a form that lets me
know how many times that record has been amended or added
to, using Access 97.
Any ideas would be grateful
Thanks
 
C

chas

Hi Jaycee,

you first of all have to add a number field to the
underlying table to store the information and then add
this new 'field' to the form. You could then use the
BeforeUpdate event of the form to increment the existing
value in the 'field' using either VBA or a SetValue macro
action. VBA is simplest (to me) and can be something like:

[MyCounterControlName] = [MyCounterControlName] + 1

hth

chas
 

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