UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> outside query    
 
   
1MikeF
post Sep 19 2005, 10:30 PM
Post #1

UtterAccess Addict
Posts: 135
From: CA, USA



I have a report that is based on query “A.” I want to have a text box on this report that will show the count of records returned for query “B.” How can I do this?
Go to the top of the page
 
+
HiTechCoach
post Sep 19 2005, 10:43 PM
Post #2

UtterAccess VIP
Posts: 18,427
From: Oklahoma City, Oklahoma



You could add a sub report that show the count or use a text box with the control source using DCOUNT()
Go to the top of the page
 
+
1MikeF
post Sep 22 2005, 07:41 AM
Post #3

UtterAccess Addict
Posts: 135
From: CA, USA



Thanks for the assistance. It turns out that I asked the wrong question.

What I meant to ask was how to get the sum of a specific calculated field (all integers) in all of the returned records.

For example:

qry "B" returns 3 records that look like this:

Name Count
Jim 2
Bill 3
Boyd 5


I want to have a text box on a report that is based on query "A" show the SUM (in this case - 10) of the Count field from query "B".



Relatedly, when putting a text box on a report, can I make the control source related to an “on-the-fly” query that is not saved anywhere else?
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 18th June 2013 - 08:54 PM