DSUM(#ERROR) IN A REPORT'S SUBREPORT

Shafique

Board Regular
Joined
Nov 23, 2018
Messages
119
HI EVERYONE
I am creating a REPORT (Untitled.jpeg) named [DISCOLOR] with date range criteria. i use this report (Untitled2) in an another report as subreport.
but in main report the dsum of subreport is returen with an error.

Any solution
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    71.1 KB · Views: 7
  • Untitled2.jpg
    Untitled2.jpg
    80.1 KB · Views: 7

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
AFAIK, domain functions (e.g. DSum) can only go in report header, detail section or footer section and not page header so where did you put the sub report?
Also, post the expression you're using in the main report control that holds the sum.
Can also be caused by having control names the same as field names, which is what you get when you use form and report wizards. Why the wizards do this has always baffled me. Aggregate functions work with fields, not controls. If the names are the same it can cause this. If I use a wizard, I never leave the control names as they are unless I am just playing around and don't intend to keep the form/report.
 
Upvote 0
AFAIK, domain functions (e.g. DSum) can only go in report header, detail section or footer section and not page header so where did you put the sub report?
Also, post the expression you're using in the main report control that holds the sum.
Can also be caused by having control names the same as field names, which is what you get when you use form and report wizards. Why the wizards do this has always baffled me. Aggregate functions work with fields, not controls. If the names are the same it can cause this. If I use a wizard, I never leave the control names as they are unless I am just playing around and don't intend to keep the form/report.
When this report [DISCOLOR] is opened individually, everything is fine. But when opening it in main report [GENERAL] which has it as sub report it gives error. I have not linked this report (DISCOLOR) to any control main report (GENERAL).
I tried several ways to make it but couldn't find a solution. However, it is definitely my fault. But can't find it
 

Attachments

  • LAST 30 DAYS SUM.jpg
    LAST 30 DAYS SUM.jpg
    122.8 KB · Views: 1
  • MAIN REPORT IN DESIGN VIEW.jpg
    MAIN REPORT IN DESIGN VIEW.jpg
    50 KB · Views: 2
  • MAIN REPORT.jpg
    MAIN REPORT.jpg
    84.6 KB · Views: 2
  • SUBREPORT.jpg
    SUBREPORT.jpg
    79.7 KB · Views: 2
Upvote 0
I have to go out for a while so right now, can only suggest you review these

Display a total from a subreport on the main report

or google
"ms access get subreport total in main report"
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,380
Members
449,097
Latest member
Jabe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top