A
annie
I have created a VBA procedure for a form intended to prevent the user *from
moving out of the current record* if the date entered in one field is not
more recent than the date entered in another field.
I initiate the procedure using the BeforeUpdate event for the form, and a
message box is displayed if the error condition is true.
The problem is, I don't know how to keep the user from moving to a different
record. I want to retain but not save any changes that the user may have
made to field values in the current record, but prevent the user from moving
on until they have corrected the error for that record.
Thanks in advance from a VBA newbie!
moving out of the current record* if the date entered in one field is not
more recent than the date entered in another field.
I initiate the procedure using the BeforeUpdate event for the form, and a
message box is displayed if the error condition is true.
The problem is, I don't know how to keep the user from moving to a different
record. I want to retain but not save any changes that the user may have
made to field values in the current record, but prevent the user from moving
on until they have corrected the error for that record.
Thanks in advance from a VBA newbie!