Senniger1
asked on
Access VBA Code to move focus when Tab Key or Enter Key is pressed.
In Access 2010 I have a form with the following fields.
TimeStart LunchStart Lunchend TimeEnd PTO Holiday
If a user presses the Tab Key after entering data in the TimeEnd field, I want the cursor to move to the PTO field. If a user presses the Enter Key after entering data in the TimeEnd field, I want the cursor to move to the Next Record.
Can anyone help me with this?
Thanks in advance!
TimeStart LunchStart Lunchend TimeEnd PTO Holiday
If a user presses the Tab Key after entering data in the TimeEnd field, I want the cursor to move to the PTO field. If a user presses the Enter Key after entering data in the TimeEnd field, I want the cursor to move to the Next Record.
Can anyone help me with this?
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This was exactly what I requested. Worked perfectly!
Disregard, misread the question.
If the current action when it reaches the last control on the form is to jump to the first control on the same record, the you will need to change the FORMs Cycle property (Other tab of the Properties dialog) from "Current Record" to "All REcords"