LastErrorNumber specifies the error code for the last runtime error.
'If error occurs, go to Error Handler
On Error GoTo ErrorHandler ErrorHandler:
MsgBox CrystalReport1.LastErrorNumber«If an error occurs, this code calls up a message box that displays the error number.»
Note: LastErrorNumber must come after the Action call in order to display relevant values. After you have printed your report, you can refer to this property to get an error number (if any). If there was no error in printing, LastErrorNumber = 0.
| Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |