R
Rpt_Me4NotBeingSmart
I used the code below as the eventprocedure for the form but I am not getting
an error message when VarianceCode = I and OtherNotes is blank/null. Did I
do something wrong here?
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Nz(Me.VarianceCode, "") = "I" Then
If IsNull(Me.OtherNotes) Then
Me.OtherNotes.SetFocus
MsgBox "You must enter notes if the variance code is I", , "Cannot
update record"
Cancel = True
End If
End If
End Sub
an error message when VarianceCode = I and OtherNotes is blank/null. Did I
do something wrong here?
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Nz(Me.VarianceCode, "") = "I" Then
If IsNull(Me.OtherNotes) Then
Me.OtherNotes.SetFocus
MsgBox "You must enter notes if the variance code is I", , "Cannot
update record"
Cancel = True
End If
End If
End Sub