473,388 Members | 1,215 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How to trigger a tab key press programmatically?

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
3 16455
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Dave C. | last post by:
Hello, I have created the following trigger: CREATE TRIGGER tr_UDFTest ON UserDefinedFields FOR INSERT, UPDATE AS DECLARE @foobar varchar(100) SELECT @foobar= foobar FROM inserted IF (...
2
by: kj | last post by:
How does one trigger an event programmatically? I'm interested in how to do this in both the "Level 0" event model as well as in the DOM Level 2 event model. Thanks! kj -- NOTE: In my...
13
by: aundro | last post by:
Hello, I've been looking on the web for a solution to this problem: I create a set of checkboxes, and 2 buttons: - one is labeled "All" - the other is labeled "None" Clicking "All" is...
11
by: Zlatko Matić | last post by:
Hello. I have a MS Access front-end working with PostgreSQL database. I have successfully created saved File DSN. My paa-through queries are referring to that file as well as linked tables. But I...
5
by: Verde | last post by:
This is admittedly an apparently odd request... but please indulge me if you don't mind: Suppose I have two <asp:Button.../> on a page (Button1 and Button2). User clicks Button1 and triggers a...
2
by: Tom_F | last post by:
To comp.databases.ms-access -- I would like to trigger an event when I close a form -- but ONLY when the data in the "RecordSource" table has been updated. I tried using the AfterUpdate event,...
15
by: ShizzMasteR | last post by:
I'm using Visual Basic 2005 Express Edition. I'm attempting to make a program that, after a button on the form (button1 or whatever I name it), the program will start programmatically pressing the F1...
1
by: koraykazgan | last post by:
Hi all, I have a user control (ASCX). In that user control there is a panel, and inside that panel there is a textbox and a button. The panel has a DefaultButton property set, which is set to the...
1
by: daonho | last post by:
I tried to use javascript to trigger up the button click function when user press enter key from the textbox. This function work fine with a single button click such has login page. However, if the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.