anyone know what this means
Invalid reference to field 'form_beforeupdate'
this is the code
Sub Form_BeforeUpdate (Cancel As Integer)
If Not ((Not IsNull(Me!HIVPOTC)) And (Not IsNull(Me!Result)) Or (IsNull(Me!HIVPOTC)) And (IsNull(Me!Result))) Then
If (IsNull(Me!Result)) Then
Cancel = True
MsgBox "Result is empty"
Result.SetFocus
Else
Cancel = True
MsgBox "HIVPOTC is empty"
HIVPOTC.SetFocus
End If
Else
'doing nothing becasue its both filled
'or both not filled
End If
End Sub
Invalid reference to field 'form_beforeupdate'
this is the code
Sub Form_BeforeUpdate (Cancel As Integer)
If Not ((Not IsNull(Me!HIVPOTC)) And (Not IsNull(Me!Result)) Or (IsNull(Me!HIVPOTC)) And (IsNull(Me!Result))) Then
If (IsNull(Me!Result)) Then
Cancel = True
MsgBox "Result is empty"
Result.SetFocus
Else
Cancel = True
MsgBox "HIVPOTC is empty"
HIVPOTC.SetFocus
End If
Else
'doing nothing becasue its both filled
'or both not filled
End If
End Sub