Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding total to running total

Status
Not open for further replies.

cwbviper

Technical User
Oct 22, 2002
101
0
0
GB
Hi there,

I have created a database which will record number of days absent. However i want to keep a running total of this, so our Company Administrator enters the number of days absent in a field, this will enter the number into an additional field, and keep a running total when more entries are made in the first field.

Any help is much appreciated.

Cheers

Colin
 
Code:
Private Sub FirstField_AfterUpdate
    Me.SecondField.Value = Me.SecondField.Value + Me.FirstField.Value
End Sub
Like that?

-------------------------
Just call me Captain Awesome.
 
Hi Grande,

That is exactly the kind of thing i was looking for.

Many thanks.

Cheers

Colin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top