I am designing a report with group levels and the sum() function works just fine. It is in group-footer & resets for each group. I need to count the occurrance of specific TEXT in a field, say DRINK in file CLIENTS within each group. There are a finite number of drinks, such as JUICE MILK etc. I have reviewed every question (I think) & the exact expression eludes me. The latest one I have is:
=DCount("DRINKS","CLIENTS","[DRINK]='JUICE'"
This yields a value which appears to be over the entire report, and is the same in every grouping.
What is wrong? I have been programming for about 40 years and am just learning Access for a volunteer application.
=DCount("DRINKS","CLIENTS","[DRINK]='JUICE'"
This yields a value which appears to be over the entire report, and is the same in every grouping.
What is wrong? I have been programming for about 40 years and am just learning Access for a volunteer application.