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  

accumulating numbers in subreport



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2006, 10:28 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default accumulating numbers in subreport

I have a total qty for a contract in a report.
In a subreport in the detail section I have received qty by dates. How could
I calculate in the subreport detail section in the additional column the qty
left.
Report:
Contract Qty - 2,000
Subreport
Date Received Qty Left Qty (I need this column???)
1/1/05 100 1,900
1/2/05 200 1,700
1/3/05 100 1,600
.....
I'm trying =SUM("Received Qty","qrySubreport","[ContractID]=" &
Reports!Report!ContractID) But, it gives me some incorrect numbers.
Please, advise anything.
Thanks
  #2  
Old April 27th, 2006, 12:09 AM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default accumulating numbers in subreport

Alex wrote:

I have a total qty for a contract in a report.
In a subreport in the detail section I have received qty by dates. How could
I calculate in the subreport detail section in the additional column the qty
left.
Report:
Contract Qty - 2,000
Subreport
Date Received Qty Left Qty (I need this column???)
1/1/05 100 1,900
1/2/05 200 1,700
1/3/05 100 1,600
....
I'm trying =SUM("Received Qty","qrySubreport","[ContractID]=" &
Reports!Report!ContractID) But, it gives me some incorrect numbers.



Add a text box named txtRunRcvd to the subreport's detail
section. bind it to the Received Qty field and set its
RunningSum property to Over All.

Then add another text box to the detail section and set its
expression to:
=Parent.[Contract Qty] - txtRunRcvd

--
Marsh
MVP [MS Access]
  #3  
Old April 27th, 2006, 05:27 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default accumulating numbers in subreport

Thank you very much, Marshall.
It's working as a song.

"Marshall Barton" wrote:

Alex wrote:

I have a total qty for a contract in a report.
In a subreport in the detail section I have received qty by dates. How could
I calculate in the subreport detail section in the additional column the qty
left.
Report:
Contract Qty - 2,000
Subreport
Date Received Qty Left Qty (I need this column???)
1/1/05 100 1,900
1/2/05 200 1,700
1/3/05 100 1,600
....
I'm trying =SUM("Received Qty","qrySubreport","[ContractID]=" &
Reports!Report!ContractID) But, it gives me some incorrect numbers.



Add a text box named txtRunRcvd to the subreport's detail
section. bind it to the Received Qty field and set its
RunningSum property to Over All.

Then add another text box to the detail section and set its
expression to:
=Parent.[Contract Qty] - txtRunRcvd

--
Marsh
MVP [MS Access]

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Non-Value SubReport AccessHelp Setting Up & Running Reports 4 January 17th, 2006 10:40 PM
Repost-Still Suffering with Subreports IreneJ Setting Up & Running Reports 9 August 31st, 2004 04:55 AM
subreport not showing fully Pam Ammond Setting Up & Running Reports 11 August 19th, 2004 10:19 PM
SubReport No Data printing problem Tony_VBACoder Setting Up & Running Reports 1 August 9th, 2004 10:10 PM
Problems totalling subreport data on main report (A-2002) Marshall Barton Setting Up & Running Reports 0 June 23rd, 2004 08:01 PM


All times are GMT +1. The time now is 02:18 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.