A
awach
I have a report with several subreports. The report looks like:
Customer Name
Contact Info*
Product Info*
Shipping Info*
with the * being the subreports.
I want to be able to count the number of records in each subreport for the
customer on that page. The report and subreports are linked by a field
[LinkField], a autonumber assigned to each customer.
I tried doing DCount("*","[Contact Info]","[LinkField=LinkField]" in the
main report. This returns the count of all the records (without limiting to
the specified link field). I tried DCount("*", "[Contact
Info]","LinkField="Parent![LinkField]" in the subreport. That returns the
correct number so long as the count of records isn't zero. If the subreport
is null, it displays an Error message.
Is there another way I can do this? Please Help!
Customer Name
Contact Info*
Product Info*
Shipping Info*
with the * being the subreports.
I want to be able to count the number of records in each subreport for the
customer on that page. The report and subreports are linked by a field
[LinkField], a autonumber assigned to each customer.
I tried doing DCount("*","[Contact Info]","[LinkField=LinkField]" in the
main report. This returns the count of all the records (without limiting to
the specified link field). I tried DCount("*", "[Contact
Info]","LinkField="Parent![LinkField]" in the subreport. That returns the
correct number so long as the count of records isn't zero. If the subreport
is null, it displays an Error message.
Is there another way I can do this? Please Help!