J
John S. Ford, MD
I'm using Access 2000.
I have a TextBox on a form bound to a field of the form's underlying table
with the following settings:
ValidationRule = Like "####"
ValidationText = "You must enter four consecutive numbers."
The form also has an "Undo" button that is supposed to undo whatever record
entry has been attempted and closes the form. Unfortunately, if the user
enters invalid data into the TextBox, I can't click on the Undo button
because each time I try to do so, the focus leaves the TextBox and the
validation routine gets triggered. When the resulting message box is
closed, the focus goes right back to the Textbox, the Undo button can never
be clicked, the form can therefore never be "undone", and it can't be
closed.
How can I stop this continuous loop from occurring?
John
I have a TextBox on a form bound to a field of the form's underlying table
with the following settings:
ValidationRule = Like "####"
ValidationText = "You must enter four consecutive numbers."
The form also has an "Undo" button that is supposed to undo whatever record
entry has been attempted and closes the form. Unfortunately, if the user
enters invalid data into the TextBox, I can't click on the Undo button
because each time I try to do so, the focus leaves the TextBox and the
validation routine gets triggered. When the resulting message box is
closed, the focus goes right back to the Textbox, the Undo button can never
be clicked, the form can therefore never be "undone", and it can't be
closed.
How can I stop this continuous loop from occurring?
John