Counting Records in a Report

C

Charlene

I have groups established with four separate time fields
in each group header. The group time fields calculate the
times from hidden detail records. I need to get a count
for each group header field that meets a particular
criteria without counting the detail fields. (example:
Dispatch Group Header time field may have the following
times 00:47, 00:31, 1:02. I need to count each dispatch
time that is under 1:00) Any help is appreciated.
 
M

Marshall Barton

Charlene said:
I have groups established with four separate time fields
in each group header. The group time fields calculate the
times from hidden detail records. I need to get a count
for each group header field that meets a particular
criteria without counting the detail fields. (example:
Dispatch Group Header time field may have the following
times 00:47, 00:31, 1:02. I need to count each dispatch
time that is under 1:00) Any help is appreciated.


To count the number of group headers, you can insert a text
box in the group header section and set its RunningSum
property to Over All.

If you want to count all the groups, set the text box's
control source expression to =1.

If you want to count them conditionally, set its ecpression
to something like:
=IIf(somefield < 1, 1, 0)

A text box in the report footer section can then display the
total count by refering to the running sum text box.
 
G

Guest

-----Original Message-----
Charlene said:
I have groups established with four separate time fields
in each group header. The group time fields calculate the
times from hidden detail records. I need to get a count
for each group header field that meets a particular
criteria without counting the detail fields. (example:
Dispatch Group Header time field may have the following
times 00:47, 00:31, 1:02. I need to count each dispatch
time that is under 1:00) Any help is appreciated.


To count the number of group headers, you can insert a text
box in the group header section and set its RunningSum
property to Over All.

If you want to count all the groups, set the text box's
control source expression to =1.

If you want to count them conditionally, set its ecpression
to something like:
=IIf(somefield < 1, 1, 0)

A text box in the report footer section can then display the
total count by refering to the running sum text box.
--
Marsh
MVP [MS Access]
.
Thanks Marsh. Wish me luck - I will try your suggestion
this afternoon.

Charlene
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top