I have two date fields, fldDateOfNoPayBegin and fldDateReturned in a table in my database. My goal is simple: I want to take the difference between the two for each record, and then sum that over all records. The result goes into a text box txtLostDaysNoPay on a form.
I've had success by setting the Control Source property for txtLostDaysNoPay (via the Properties box in Access) equal to
Expand|Select|Wrap|Line Numbers
- =Sum(DateDiff("d",[tblWC]![fldDateOfNoPayBegin],[tblWC]![fldDateReturned]))
Just want to keep everything in the VB module as much as possible. Thanks!
Pat