>Hello,
>How do you trap errors inside a report (say, a field does not exist) to prevent the error messagebox to appear when trying to print or preview the report ? Apparently ON ERROR is ignored here...
From where do you call the report?
Use Error event to capture errors if possible.
If you wish to debug report, stop the program execution before
report form MyRepo
command. Use
modify report MyRepo
to open the report and then from file menu choose preview. You will see the error message, and after that the field that has raised the error will be activated.
HTH
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!