Sum DCOUNT Calculated Control

M

Michael

Hi Folks - I am using DCOUNT like this:

=DCount("disp1","qrycombinedispositions","disp=qrycombinedispositions.disp1")

I am counting the number of different dispositions based on a control in the
report. It works fine.

I'd like to sum the individual counts into a grand total. I realize you
cannot sum a calculated control. I've tried the workaround of using another
text box control that sets the control source to the calculated control name
and uses the running sum property. No luck.

The name of the dcount calculated control is txtCountDisposition.
The name of the running sum control is txtSums with the control source set
to =txtCountDisposition.
The running sum control is in the report footer.

Any ideas?

Thanks.

Michael
 
M

Marshall Barton

Michael said:
Hi Folks - I am using DCOUNT like this:

=DCount("disp1","qrycombinedispositions","disp=qrycombinedispositions.disp1")

I am counting the number of different dispositions based on a control in the
report. It works fine.

I'd like to sum the individual counts into a grand total. I realize you
cannot sum a calculated control. I've tried the workaround of using another
text box control that sets the control source to the calculated control name
and uses the running sum property. No luck.

The name of the dcount calculated control is txtCountDisposition.
The name of the running sum control is txtSums with the control source set
to =txtCountDisposition.
The running sum control is in the report footer.


The RunningSum text box must be in the same section as the
DCount text box.

The text box in the report footer displays the grand total
by using the expression =txtSums
 
G

Guest

I don't see how

=DCount("disp1","qrycombinedispositions","disp=qrycombinedispositions.disp1")
works to display any accurate results. It is basically the same as
=DCount("disp1","qrycombinedispositions","disp=disp1")

Can you tell us the actual expression and something about the record source
of the report?
 

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