count records subform > 60days

stargate

Registered User.
Local time
Today, 21:58
Joined
Feb 19, 2004
Messages
20
Ive base my subforms recordset on a query which uses the datediff function to find the total days.

I have added a unbound field in the footer of the subform to calcuate the no of records greater than 60days and then pass the calculated value to another bound field on the main form.

All I need to know if what is the function I use to count the no records greater than 60 days.

=Sum([Days]>60)

Im getting a negative number when I use the less than symbol
 
Last edited:
If it's the correct number, you can simply wrap your formula in the Abs() function.
 
Actually, I had that off, it would be:
Code:
=Sum(IIF([Days]>60,1,0))
 

Users who are viewing this thread

Back
Top Bottom