Share this Page URL

Chapter 5. Using Visual Basic to Automat... > Handling Errors and Debugging Code - Pg. 171

Using Visual Basic to Automate Your Database 4. 171 5. 6. In the Code window, delete Err.Description from the MsgBox Err.Description statement, and then, after MsgBox, enter text such as "This report is not part of the database. Please enter a different report." In the Resume statement, delete the Exit_cmdPrintReport_Click label, and enter PrintReport. Above the statement that begins strRpt = InputBox, add the label PrintReport:. (Be sure to include the colon.) The procedure should now look like this: