Minddumps
Registered User.
- Local time
- Today, 18:01
- Joined
- Jul 5, 2011
- Messages
- 73
[SOLVED--SEE BELOW TRAFFIC]
I've created a report to list every record (1900 something total). This one main report is used to open my many querys (more than 50). In order to save myself from creating numerous reports I filter the records through my command button before opening the report. Once in the report, I'd like to count certain cells of the records.
So for example I have
BN, CO, ST fields in my table that are a yes or no input. I need the code to tell the record to count how many records are 1. yes BNs, 2. yes COs, and 3. yes ST opened through the query that is currently filtered in the report
Currently I have inputted this code into an unbound box for each of the 3 fields needed:
The problem with this is that it tells me the results of How many COs (BN's and ST for the others) there are for the entire table and not the current filtered query.
Does anyone know how to tell the code to only count the records currently filtered?
I've created a report to list every record (1900 something total). This one main report is used to open my many querys (more than 50). In order to save myself from creating numerous reports I filter the records through my command button before opening the report. Once in the report, I'd like to count certain cells of the records.
So for example I have
BN, CO, ST fields in my table that are a yes or no input. I need the code to tell the record to count how many records are 1. yes BNs, 2. yes COs, and 3. yes ST opened through the query that is currently filtered in the report
Currently I have inputted this code into an unbound box for each of the 3 fields needed:
Code:
=Nz(DCount("*","How_many_COs?"),0)
Does anyone know how to tell the code to only count the records currently filtered?
Last edited: