By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,635 Members | 913 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,635 IT Pros & Developers. It's quick & easy.

How to trigger a tab key press programmatically?

P: n/a
kai
Hi, All

I try to trigger tab key press when enter a string in "customer ID" if
its length is six, but I cannot find command to simulate TAB KEY press.
PLease help.

Thanks a lot

Kai
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Try SendKeys {TAB},True.

There are several events you can trap On Change, etc. Then check the Len()
of what the control you have defined.

Hope that helps..

Barry
"kai" <ka******@earthlink.net> wrote in message
news:LP***************@newsread1.news.pas.earthlin k.net...
Hi, All

I try to trigger tab key press when enter a string in "customer ID" if
its length is six, but I cannot find command to simulate TAB KEY press.
PLease help.

Thanks a lot

Kai

Nov 13 '05 #2

P: n/a
Pat
I may be completely misinterpreting your question, but if you are looking to
programmatically move to the next field (simulating the tab key), look at
..SetFocus.
HTH
Pat
"kai" <ka******@earthlink.net> wrote in message
news:LP***************@newsread1.news.pas.earthlin k.net...
Hi, All

I try to trigger tab key press when enter a string in "customer ID" if
its length is six, but I cannot find command to simulate TAB KEY press.
PLease help.

Thanks a lot

Kai

Nov 13 '05 #3

P: n/a
kai
Thanks, it works great!
Kai
"Barry Young" <yo******@insightbb.com> wrote in message
news:jzQXc.57106$9d6.22167@attbi_s54...
Try SendKeys {TAB},True.

There are several events you can trap On Change, etc. Then check the
Len()
of what the control you have defined.

Hope that helps..

Barry
"kai" <ka******@earthlink.net> wrote in message
news:LP***************@newsread1.news.pas.earthlin k.net...
Hi, All

I try to trigger tab key press when enter a string in "customer ID" if
its length is six, but I cannot find command to simulate TAB KEY press.
PLease help.

Thanks a lot

Kai


Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.