Hello All,
If the user enters an invalid client name in the client field of a form, I have a msgbox pop up that says invalid client name. No problem. I want to make the cursor go back to the client filed in the form to correct the entry.
What is the vba code that will allow me to place the cursor in the client field? I do not want to use sendkeys "{UP}" as the form will be changed in the near future.
I've tried stuff like: me.Client.SetFocus, and .GotFocus.
No matter what I do, the cursor is always one field past where I want it after the invalid client name msgbox pops up.
Any help would be greatly appreciated!!!
Thanks in advance,
Barboza
If the user enters an invalid client name in the client field of a form, I have a msgbox pop up that says invalid client name. No problem. I want to make the cursor go back to the client filed in the form to correct the entry.
What is the vba code that will allow me to place the cursor in the client field? I do not want to use sendkeys "{UP}" as the form will be changed in the near future.
I've tried stuff like: me.Client.SetFocus, and .GotFocus.
No matter what I do, the cursor is always one field past where I want it after the invalid client name msgbox pops up.
Any help would be greatly appreciated!!!
Thanks in advance,
Barboza