Continuous forms - checkbox in last column - if ticked get focus to go to next line

Hi,

I have a Continuous form with the last column as a checkbox - when you click on it it updates the checkbox and I can get code to do things on the line but the focus remains on the checkbox.

I would like it so that when the checkbox is ticked it moves the focus the same as if you clicked the tab key. In this case as checkbox last column and last tab order it would move focus to next line ready to enter data in first field in next line.

Appreciate any help.
donhannamAsked:
Who is Participating?
 
PatHartmanConnect With a Mentor Commented:
In the AfterUpdate event of the checkbox, use the SendKeys statement to send a tab.

SendKeys "{TAB}"

Look up SendKeys in Help to see how to send other characters.
0
 
donhannamAuthor Commented:
Great thanks - works perfectly
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.