G
Guest
I am trying to validate data on a form (A continuous form). I have put this
code in the BeforeUpdate event of the field:
Private Sub QtyLogOut_BeforeUpdate(Cancel As Integer)
Select Case Me![QtyLogOut]
Case Me![QtyLogOut] > Me![QtyOnHand]
MsgBox "You are trying to log out more than we have!", vbOKOnly
Cancel = True
End Select
End Sub
It does not appear to work. Can you give me suggestions.
code in the BeforeUpdate event of the field:
Private Sub QtyLogOut_BeforeUpdate(Cancel As Integer)
Select Case Me![QtyLogOut]
Case Me![QtyLogOut] > Me![QtyOnHand]
MsgBox "You are trying to log out more than we have!", vbOKOnly
Cancel = True
End Select
End Sub
It does not appear to work. Can you give me suggestions.