I'm trying to display the number of active cases for each CaseCode
fields:
CaseID, number long
casecode, text, 3 char
CaseStatus, text, 1 char (A or I)
data:
CaseID
CaseCode
CaseStatus
1
SOC
A
2
TMM
A
3
SOC
I
4
SOC
A
I need to display the number of active cases , e.g.,
SOC : 2
TMM: 1
In a form, I put the following in a text box and it sums the total number of active cases:
=sum(IIF(CaseStatus = "A",1,0)) results in A=3, but now I need it to provide the total active for each CaseCode.
I'd really appreciate any suggestions.