I have a report with three sub-reports, on each sub-report footer I count how many records in the subreport. No problemo.
On the Detail section of the main report, I have a text box which adds up all these counts and shows how many (people) in total. Again, no problems... as long as there is at least one entry in each sub-report. Ahh thinks I, I must trap for null values.
Sadly, however, that didn't work either. When I put a breakpoint in and go to the immediate window, I can debug.print the values of the textboxes that do the counting on the sub-reports, except where no people fit the query that feeds the subreports. Surprisingly (to me anyway) when I try to print that one, I don't get the Null I expected, I get
Expand|Select|Wrap|Line Numbers
- Run-time error 2427
- You entered an expression that has no value
Jim