A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sum DCOUNT Calculated Control



 
 
Thread Tools Display Modes
  #1  
Old July 18th, 2007, 10:48 PM posted to microsoft.public.access.reports
Michael
external usenet poster
 
Posts: 57
Default Sum DCOUNT Calculated Control

Hi Folks - I am using DCOUNT like this:

=DCount("disp1","qrycombinedispositions","disp=qry combinedispositions.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





  #2  
Old July 19th, 2007, 05:28 AM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Sum DCOUNT Calculated Control

Michael wrote:

Hi Folks - I am using DCOUNT like this:

=DCount("disp1","qrycombinedispositions","disp=qr ycombinedispositions.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

--
Marsh
MVP [MS Access]
  #3  
Old July 19th, 2007, 05:38 AM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Sum DCOUNT Calculated Control

I don't see how

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

Can you tell us the actual expression and something about the record source
of the report?
--
Duane Hookom
Microsoft Access MVP


"Michael" wrote:

Hi Folks - I am using DCOUNT like this:

=DCount("disp1","qrycombinedispositions","disp=qry combinedispositions.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






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.