Show Conditional Total in Group Footer (1 Viewer)

Sazed

New member
Local time
Today, 11:08
Joined
Jul 19, 2020
Messages
18
Scenario:
on the Report the Expiry Cell color is:
Green if the Expiry Date is between Now()+35 and Now()+180
Pink if the Expiry Date is between Now() and Now()+35
Red if the Expiry Date is below <Now()
This function works fine as you see here on the picture below.
Requirement: I want to show the Total of Red, Pink and Green on the Group Footer area.
Appreciate your help to resolve this issue.

1595159817957.png
 

Ranman256

Well-known member
Local time
Today, 04:08
Joined
Apr 9, 2015
Messages
4,339
Set the box in the report,via Conditional formatting btn.
In the query, add field to count the days....
Daydiff("d",[datefield],now)
 

Gasman

Enthusiastic Amateur
Local time
Today, 09:08
Joined
Sep 21, 2011
Messages
14,238
Use DCount with the same criteria you used for the CF ?
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 04:08
Joined
Feb 19, 2002
Messages
43,233
I would use a subform that totals the report's RecordSource. Using functions requires hard coding values which is fine although inefficient if they are stable but if they are not stable, you will find yourself frequently making changes to the report as new values need to be "counted"
 

Users who are viewing this thread

Top Bottom