D
Dhonan
I am using VB code in the "after update" event for a field on a form.
The code checks for errors and if there is an error, it is displayed using
Msgbox.
The next step attempts to set focus to the same field so the error can be
corrected (e.g. Me!text1.setfocus). However, it is not setting focus to the
same field, instead going to the next tabbed field. I have also tried the
docmd.setfocus with the same result.
Any ideas? Thank you so much.
The code checks for errors and if there is an error, it is displayed using
Msgbox.
The next step attempts to set focus to the same field so the error can be
corrected (e.g. Me!text1.setfocus). However, it is not setting focus to the
same field, instead going to the next tabbed field. I have also tried the
docmd.setfocus with the same result.
Any ideas? Thank you so much.