I have looked through the threads but can't find a solution ...
My data entry form has a number of buttons, performing various functions via VBA code. These buttons have a tab sequence and, in addition, at the end of each function the focus is transferred to the next button, so that a series of presses of the Enter key would move through the form accepting the default action of each one.
The problem is that the cursor stays wherever it happens to be after pressing the first button or by having moved the mouse. An inattentive (but habitual) click of the mouse can trigger the wrong action. How can I persuade the cursor to follow the setfocus sequence?
TIA.