I understand that both the below examples do exact;ly the same thing. Is it always safe to do what is described first or should the second example be what is required? Made be there is an even better way. Thanks in advance.
Private Sub Return_to_Exhibitor_Form_Btn_Click()
DoCmd.Close acForm, "frmPrintReports"
Exit Sub
Private Sub Return_to_Exhibitor_Form_Btn_Click()
On Error GoTo Err_Return_to_Exhibitor_Form_Btn_Click
DoCmd.Close acForm, "frmPrintReports"
Exit_Return_to_Exhibitor_Form_Btn_Click:
Exit Sub
Err_Return_to_Exhibitor_Form_Btn_Click:
MsgBox Err.Description
Resume Exit_Return_to_Exhibitor_Form_Btn_Click
Private Sub Return_to_Exhibitor_Form_Btn_Click()
DoCmd.Close acForm, "frmPrintReports"
Exit Sub
Private Sub Return_to_Exhibitor_Form_Btn_Click()
On Error GoTo Err_Return_to_Exhibitor_Form_Btn_Click
DoCmd.Close acForm, "frmPrintReports"
Exit_Return_to_Exhibitor_Form_Btn_Click:
Exit Sub
Err_Return_to_Exhibitor_Form_Btn_Click:
MsgBox Err.Description
Resume Exit_Return_to_Exhibitor_Form_Btn_Click