G
Guest
I have a form with several text boxes. In the On Change property of the
first I have some VBA code that tests for a value. If the value doesn't meet
the criteria, I use a message box with an OK to tell them to enter a correct
value. The focus moves to the next box on the tab list. I would like the
focus to go back to the first box. I have tried a setfocus.Text0 type
command but it still goes to the next box. What is the proper command to use
in the VBA to put the cursor back in the first box after displaying the
message? Thanks for your help.
first I have some VBA code that tests for a value. If the value doesn't meet
the criteria, I use a message box with an OK to tell them to enter a correct
value. The focus moves to the next box on the tab list. I would like the
focus to go back to the first box. I have tried a setfocus.Text0 type
command but it still goes to the next box. What is the proper command to use
in the VBA to put the cursor back in the first box after displaying the
message? Thanks for your help.