Keith Nichols
Registered User.
- Local time
- Today, 13:17
- Joined
- Jan 27, 2006
- Messages
- 431
Hi,
If a user runs a report with parameters from the switchboard and there is no data for that report, the report displays with errors. I would like to trap the error, display a message and return the user to the switchboard.
All the threads I have found relating to this tell me that the error trap needs to be wherever the report was called from, not the "On no data" event of the report itself. Have I understood this correctly?
If the error trap cannot be on a report event, how do I attach it to the Switchboard buttons?
Is there a more sensible way to achieve this?
I did find one thread that solved the problem, but the solution was to call a macro with error trapping built in, that then called the report. I have many reports and I think this solution would need a macro (or module) for each report, something I am reluctant to get into.
Thanks in advance.
If a user runs a report with parameters from the switchboard and there is no data for that report, the report displays with errors. I would like to trap the error, display a message and return the user to the switchboard.
All the threads I have found relating to this tell me that the error trap needs to be wherever the report was called from, not the "On no data" event of the report itself. Have I understood this correctly?

If the error trap cannot be on a report event, how do I attach it to the Switchboard buttons?

Is there a more sensible way to achieve this?

I did find one thread that solved the problem, but the solution was to call a macro with error trapping built in, that then called the report. I have many reports and I think this solution would need a macro (or module) for each report, something I am reluctant to get into.
Thanks in advance.