I have a switchboard that has a Edit Record button. When the Edit Record button is clicked in call frmCheckInEdit. The operator is instructed to enter the receipt number. The On Open event on frmCheckInEdit is as follows:
Private Sub Form_Open(Cancel As Integer)
Dim strWhere As String
strWhere = “ReceiptNumber=[Enter Receipt Number]”
DoCmd.OpenForm “frmCheckInEdit”, acNormal, , strWhere
End Sub
I am new to error handling and need to add an error handling routine that will tell the operator that an invalid receipt number was entered. I think it would be nice to give the operator the option of entering a new receipt number or returning to the Main Menu.
Tom Goodwin