Greetings.
I have a form based on a query q_SessionGrid, that shows
inforamtion on therapy sessions and includes the following fields:
SessionID
Client
Therapist
Date
Attendance (the values here can be A,C or N)
FeeDue
FeePaid
I am using Allen Browne's Search2000 combo box
method to filter sessions by Client or Therapist.
Each record retrieved includes data for each of the fields (i.e.,no nulls)
In the footer, I have unbound controls displaying Sums for the
FeeDue and FeePaid for the sessions displayed after the filter is on,
and a Count of the total number of sessions displayed. The number
of sessions is calculated by counting the Attendance codes.
Those Attendance codes include a mix of A, C and N values.
I would like a Count of ONLY the A values.
I tried (as a first effort with Ecount after realizing Dcount didn't work)
=Ecount("*","q_SessionGrid","Attendance = 'A'")
and it retrieves all the A values in the underlying query.
I only want to see the count for the records displayed when the filter
is on, and I can't figure out how to reference only the records displayed
when the filter is on.
Thanks in advance for your suggestions
Lyletti
I have a form based on a query q_SessionGrid, that shows
inforamtion on therapy sessions and includes the following fields:
SessionID
Client
Therapist
Date
Attendance (the values here can be A,C or N)
FeeDue
FeePaid
I am using Allen Browne's Search2000 combo box
method to filter sessions by Client or Therapist.
Each record retrieved includes data for each of the fields (i.e.,no nulls)
In the footer, I have unbound controls displaying Sums for the
FeeDue and FeePaid for the sessions displayed after the filter is on,
and a Count of the total number of sessions displayed. The number
of sessions is calculated by counting the Attendance codes.
Those Attendance codes include a mix of A, C and N values.
I would like a Count of ONLY the A values.
I tried (as a first effort with Ecount after realizing Dcount didn't work)
=Ecount("*","q_SessionGrid","Attendance = 'A'")
and it retrieves all the A values in the underlying query.
I only want to see the count for the records displayed when the filter
is on, and I can't figure out how to reference only the records displayed
when the filter is on.
Thanks in advance for your suggestions
Lyletti