Hi,
I'm trying to understand a bit of MS Access magic.
I have a report where number of records in the report is crucial information. For this reason I want to display a count on the report header page. I have one report where I succeeded in doing so using a text box with the following data source property
=IIf([Report].[HasData];Count([COL_NAME]);0)
I have another report that was copied from the first that uses the exact same query. The text box now always displays #Error as the value. I have tried several variations on the data source property but the result is always the same: #Error. I have tried for example
=IIf([Report].[HasData];Count([COL_NAME]);0)
=IIf([Report].[HasData];Count(*);0)
=IIf([Report].[HasData];Count("*");0)
Is there a way to debug this problem? I have spend countless hours trying to figure out why it doesn't work in the second report but really got step further to understand the mechanisme behind counting records in MS access reports.
Is there a debugger of some sorts where we can step into the count-function to see why this does not work.
Thanks and Regards,
Onno