Subreport Problem (Simple One, I Hope)

turtsmurt

New Member
Joined
Mar 4, 2010
Messages
45
Hello all,

I'm sure this has been asked before. I'm not new to Access, but I'm not great with VB code.

I have a subreport that is listed by a group header in the main report. The subreport gives total counts based on a query with various criteria.

Since the main report is based on a seperate query I have been successful at getting the subreport to remain with its group, however, I need the subreport to reflect zeros when there are no results under that grouping. Or even to reflect a message that there are no results for that group.

I've tried adding a textbox overlapping the subreport with an IIf expression, however, all I get with that is an #error result.

The funny thing is that in Report View, those subreports actually show up as zeros, but in the print copy they are just blank.

Any ideas or helpful instructions would be greatly appreciated.

Christine:rolleyes:
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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