count related records only

G

Guest

I have a report that shows detail only from a head of household query. The
report also has a subreport that lists the related records (family members)
from another query. I need the detail section of the main report to count the
records that are displayed in the subreport. I tried using the dcount
function, but I don't know how to write the criteria so that it counts only
the related records. I am counting a primary key field that is named ID.
TIA.
 
D

Duane Hookom

You can place the Count in the report footer of the subreport. Then you can
add a control in the main report with a control source like:
=srptCtlName.Report!txtCount
 

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

Similar Threads

counting records 0
Access Dcount (multiple criteria) 3
Counting Null Values in Report 1
Counting Unique Values within a Group 2
DCount in Reports 1
report summary 2
report/subreport 11
counting records shown in a report 3

Top