LastErrorString specifies the error string for the last runtime error.
'If error occurs, go to Error Handler
On Error GoTo ErrorHandler ErrorHandler:
MsgBox CrystalReport1.LastErrorString«If an error occurs, this code calls up a message box that displays the error string.»
Note: LastErrorString 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 string (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 |