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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to get SubReport Total to show on Main Report?
I have not been able to figure this out. I have a main report with a
sub-report in it. The sub-report has a field called Text84, that is the Sum of a field called "dctrip-dollars", looks like this to get the total on the Sub-Report, =Sum([dctrip-dollars]). I want to be able to move the Text84 total to the maim report where I do other calculations. I tried to get the total with this statement, =([Reports]![STrptStatement20022003]![Text84]) Does not work. Give me an Error message. Any ideas on what I have done wrong, and how to fix it. Thanks for the help, MikeB |
#2
|
|||
|
|||
How to get SubReport Total to show on Main Report?
Subreports are not open in their own right, i.e. they are not part of the
Reports collection. Try: =[STrptStatement20022003].[Report]![Text84]) where "STrptStatement20022003" is name of the subreport *control* on your main report. If the subreport has no data, that reference will give you an error, which will mess up your calculations. Once you get the above working, test the HasData property of report in the subreport control, and also use Nz() to convert any null to zero: =IIf([STrptStatement20022003].[Report].HasData, Nz([STrptStatement20022003].[Report]!Text84,0), 0) -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "MikeB" wrote in message hlink.net... I have not been able to figure this out. I have a main report with a sub-report in it. The sub-report has a field called Text84, that is the Sum of a field called "dctrip-dollars", looks like this to get the total on the Sub-Report, =Sum([dctrip-dollars]). I want to be able to move the Text84 total to the maim report where I do other calculations. I tried to get the total with this statement, =([Reports]![STrptStatement20022003]![Text84]) Does not work. Give me an Error message. Any ideas on what I have done wrong, and how to fix it. Thanks for the help, MikeB |
#3
|
|||
|
|||
How to get SubReport Total to show on Main Report?
Allen,
Thanks very much, this worked great. The Access NewsGroups and all who monitor have been so very helpful to me, I can't thank you enough. I have a number of books on Access in various versions, and when I can't find the answer there, the News Groups always come through. I have learned a lot just by watching others postings. Again, thanks very much. MikeB ~~~~~~~~~~~~~~~~~~~~~~~~~ "Allen Browne" wrote in message ... Subreports are not open in their own right, i.e. they are not part of the Reports collection. Try: =[STrptStatement20022003].[Report]![Text84]) where "STrptStatement20022003" is name of the subreport *control* on your main report. If the subreport has no data, that reference will give you an error, which will mess up your calculations. Once you get the above working, test the HasData property of report in the subreport control, and also use Nz() to convert any null to zero: =IIf([STrptStatement20022003].[Report].HasData, Nz([STrptStatement20022003].[Report]!Text84,0), 0) -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "MikeB" wrote in message hlink.net... I have not been able to figure this out. I have a main report with a sub-report in it. The sub-report has a field called Text84, that is the Sum of a field called "dctrip-dollars", looks like this to get the total on the Sub-Report, =Sum([dctrip-dollars]). I want to be able to move the Text84 total to the maim report where I do other calculations. I tried to get the total with this statement, =([Reports]![STrptStatement20022003]![Text84]) Does not work. Give me an Error message. Any ideas on what I have done wrong, and how to fix it. Thanks for the help, MikeB |
#4
|
|||
|
|||
How to get SubReport Total to show on Main Report?
Excellent, Mike. Appreciated.
Most of us would echo your sentiments. What we have learned here from everyone's real-world struggles and solutions is invaluable. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "MikeB" wrote in message link.net... Allen, Thanks very much, this worked great. The Access NewsGroups and all who monitor have been so very helpful to me, I can't thank you enough. I have a number of books on Access in various versions, and when I can't find the answer there, the News Groups always come through. I have learned a lot just by watching others postings. Again, thanks very much. MikeB |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Label | SRIT | General Discussion | 2 | June 22nd, 2004 09:42 PM |
need help make a report | [email protected] | General Discussion | 2 | June 16th, 2004 08:31 PM |
Using a calculated subtotal field in main report in access97 | jberv534 | Setting Up & Running Reports | 4 | June 1st, 2004 03:05 PM |
Please help with report format | Al | Setting Up & Running Reports | 0 | June 1st, 2004 02:46 PM |
show only the negative total | jv | Worksheet Functions | 4 | January 20th, 2004 06:21 PM |