A
Anada
I experienced error messages when I wished to validate data in a text box
through the before update event in Access 2007. After multiple attempts to
find the problem, I finally created the simplest database with only a table
with two variables, a auto numbered and a text field and create a form with
this VBA below in the before update for the text variable to see what was
happening.
Private Sub var1_BeforeUpdate(Cancel As Integer)
If MsgBox("Cancel entry?", vbYesNo) = vbYes Then Cancel = True
End Sub
In a form view (simple or continuous) all works well, but when the form is
in datasheet view, I get the error messages after answering to the msgbox
prompt. Mostly I get "Property not found" and sometimes "The search key was
not found in any record" or "No current record"
I though my Access 2007 had some corrupted files. I reinstalled everything
and the problem is still there!
Does anyone have a clue?
through the before update event in Access 2007. After multiple attempts to
find the problem, I finally created the simplest database with only a table
with two variables, a auto numbered and a text field and create a form with
this VBA below in the before update for the text variable to see what was
happening.
Private Sub var1_BeforeUpdate(Cancel As Integer)
If MsgBox("Cancel entry?", vbYesNo) = vbYes Then Cancel = True
End Sub
In a form view (simple or continuous) all works well, but when the form is
in datasheet view, I get the error messages after answering to the msgbox
prompt. Mostly I get "Property not found" and sometimes "The search key was
not found in any record" or "No current record"
I though my Access 2007 had some corrupted files. I reinstalled everything
and the problem is still there!
Does anyone have a clue?