mstorer
05-12-2003, 03:16 PM
I am running a report from a parameter query. The query's recordset can vary from one to "n" records. Should the value of [Total] in any one of the records exceed a predetermined value, I would like a message box to appear informing the user that the report cannot be distributed until further review.
In the On Open event of the report, I referenced a macro to display a message box. The condition in the macro reads: [Reports]![ReportName]![Total] >100000. When the report tries to open, I receive the message: "Type Mismatch". The value of [Total] is calculated in the query that generates the report. I double-checked the query and the value is in fact a number.
Am I going about this incorrectly? Do I need a module that defines the recordset?
Thanks as always for allowing me to pick your brains.
- Matt
In the On Open event of the report, I referenced a macro to display a message box. The condition in the macro reads: [Reports]![ReportName]![Total] >100000. When the report tries to open, I receive the message: "Type Mismatch". The value of [Total] is calculated in the query that generates the report. I double-checked the query and the value is in fact a number.
Am I going about this incorrectly? Do I need a module that defines the recordset?
Thanks as always for allowing me to pick your brains.
- Matt