On the attached database (a functional similar database to the one I'm trying to code correctly) I'm trying to get a subform to total and am having a hard time getting it to do so.
I have an original thread in the VBA & Modules area:
http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=47529
that goes through what I've tried to do so far, and even Pat Hartman has tried helping, but am still unsuccessful in getting it to work properly.
I've created a textbox on the subform footer called [TotalDays] and given it the control source of:
=Sum(IIf(IsDate([txtPrev]),DateDiff("d",[txtPrev],[fldDate]),"0"))
Perhaps those in this area might have better luck at seeing what they can come up with.
Thanks!
Bluez
I have an original thread in the VBA & Modules area:
http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=47529
that goes through what I've tried to do so far, and even Pat Hartman has tried helping, but am still unsuccessful in getting it to work properly.
I've created a textbox on the subform footer called [TotalDays] and given it the control source of:
=Sum(IIf(IsDate([txtPrev]),DateDiff("d",[txtPrev],[fldDate]),"0"))
Perhaps those in this area might have better luck at seeing what they can come up with.
Thanks!
Bluez