Using Access 2003 (2000 format)
I have custom navigation buttons on a form. The BeforeUpdate for the form includes the following code:
If data is entered for a new member, and a navigation button clicked...why does the error trap not work, and the message "You can't go to specified record" still occur?
Tom
I have custom navigation buttons on a form. The BeforeUpdate for the form includes the following code:
Code:
If IsNull(Me.Status) Then
Me.Status = "Active"
Me.cboStatus.SetFocus
Select Case MsgBox(" You have entered a new member." _
& vbCrLf & " The Status has been set to ""Active.""" _
& vbCrLf & " " _
& vbCrLf & "Is that the correct Status for this Member?" _
, vbYesNo Or vbExclamation Or vbDefaultButton1, "Status check")
Case vbYes
Case vbNo
Cancel = True
Me.cboStatus.SetFocus
Exit Sub
End Select
End If
MyExit:
On Error GoTo 0
Exit Sub
Form_BeforeUpdate_Error:
If Err.Number = 2105 Then
Resume MyExit
Else
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure Form_BeforeUpdate of VBA Document Form_frmMembers"
End If
End Sub
If data is entered for a new member, and a navigation button clicked...why does the error trap not work, and the message "You can't go to specified record" still occur?
Tom