G
Guest
I am still struggling with data validation at the control
level when adding new data to a form (a new record). Following up on an
earlier thread, I am using the BeforeUpdate property with
the following code (almost straight out of the book)
Private Sub PatientFName_BeforeUpdate(Cancel As Integer
If PatientFName = "" The
MsgBox "First Name cannot be blank
Me!PatientFName.Und
Cancel = Tru
End I
End Su
However you can still tab or click out of the control
without triggering the error statement. What am I doing
wrong
da
level when adding new data to a form (a new record). Following up on an
earlier thread, I am using the BeforeUpdate property with
the following code (almost straight out of the book)
Private Sub PatientFName_BeforeUpdate(Cancel As Integer
If PatientFName = "" The
MsgBox "First Name cannot be blank
Me!PatientFName.Und
Cancel = Tru
End I
End Su
However you can still tab or click out of the control
without triggering the error statement. What am I doing
wrong
da