G
Guest
Any takers on this? I've had no responses...Thanks!
This should be a simple solution but I've tried and tried with no luck and
have searched for help in the newsgroups but I'm not doing something right.
I want to count the number of times a record appears in a group in a report.
The following are my controls in the report.
SalesRep, CustNbr, AmtPd
I have grouped by SalesRep. The CustNbr may appear several times in the
detail section. Even tho the CustNbr appears many times, I only want to count
it once. I have created a second group header for CustNbr and have moved the
control to that header. I have added a text box to the CustNbr header named
CustTotal with the Control Source as =1, Running Sum = Over Group. This gives
me the running count in the report just fine. BUT, I want to use this total
in a calculated control to divide the AmtPaid sum by the total CustNbr.
There are 25 records in the detail section but I have only 24 CustNbr's. I
have created another calculated control in the SalesRep header and I'm trying
to use my new text box "CustTotal" in my calculation. Every time I run the
report, I receive a parameter box with the CustTotal control name in the box.
I've even tried a simple count of CustTotal and I'm still getting the
parameter box.
What am I missing???
Thanks in advance!
This should be a simple solution but I've tried and tried with no luck and
have searched for help in the newsgroups but I'm not doing something right.
I want to count the number of times a record appears in a group in a report.
The following are my controls in the report.
SalesRep, CustNbr, AmtPd
I have grouped by SalesRep. The CustNbr may appear several times in the
detail section. Even tho the CustNbr appears many times, I only want to count
it once. I have created a second group header for CustNbr and have moved the
control to that header. I have added a text box to the CustNbr header named
CustTotal with the Control Source as =1, Running Sum = Over Group. This gives
me the running count in the report just fine. BUT, I want to use this total
in a calculated control to divide the AmtPaid sum by the total CustNbr.
There are 25 records in the detail section but I have only 24 CustNbr's. I
have created another calculated control in the SalesRep header and I'm trying
to use my new text box "CustTotal" in my calculation. Every time I run the
report, I receive a parameter box with the CustTotal control name in the box.
I've even tried a simple count of CustTotal and I'm still getting the
parameter box.
What am I missing???
Thanks in advance!