Solved

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

Posted on 2014-01-20
2
445 Views
Last Modified: 2014-01-20
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.
0
Comment
Question by:donhannam
2 Comments
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39795275
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
 

Author Closing Comment

by:donhannam
ID: 39795294
Great thanks - works perfectly
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question