473,499 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detecting when Tab is pressed

Hi All,
In AccessXP I have a form, it has a form header, detail and footer
sections. When done entering text in a txtbox(bxReqst) in the footer
the user wants to press the Tab key and have the focus move to a
control called bxQues in the Detail section.
From the control in the footer how do I detect when a Tab key is
pressed and set the focus to the control(bxQues) in the detail
section?
thanks
bobh.
Jan 10 '08 #1
2 4768
bobh wrote:
Hi All,
In AccessXP I have a form, it has a form header, detail and footer
sections. When done entering text in a txtbox(bxReqst) in the footer
the user wants to press the Tab key and have the focus move to a
control called bxQues in the Detail section.
From the control in the footer how do I detect when a Tab key is
pressed and set the focus to the control(bxQues) in the detail
section?
thanks
bobh.
Here's an example using KeyDown for a textbox
Private Sub Text8_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 9 Then Me.Text4.SetFocus
End Sub

Da Bomb
http://www.youtube.com/watch?v=nETVIeygqjY
Jan 10 '08 #2
On Jan 10, 11:43*am, Salad <o...@vinegar.comwrote:
bobh wrote:
Hi All,
In AccessXP I have a form, it has a form header, detail and footer
sections. When done entering text in a txtbox(bxReqst) in the footer
the user wants to press the Tab key and have the focus move to a
control called bxQues in the Detail section.
From the control in the footer how do I detect when a Tab key is
pressed and set the focus to the control(bxQues) in the detail
section?
thanks
bobh.

Here's an example using KeyDown for a textbox
Private Sub Text8_KeyDown(KeyCode As Integer, Shift As Integer)
* * *If KeyCode = 9 Then Me.Text4.SetFocus
End Sub

Da Bombhttp://www.youtube.com/watch?v=nETVIeygqjY
That worked....... Thanks :)
Jan 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2789
by: kstahl | last post by:
Howdy, I would like to get down to the nitty-gritty of the keyboard's operation. Specifically, I would like to poll only a few keys on the keyboard, and I would like to know when more than one...
5
1208
by: Charlie | last post by:
How do I determine if the user has pressed the tab key? The Keypress and Keydown events fire for other keys, but not the tab.
2
1628
by: Austin T | last post by:
Hello I wish to set up a handler to detect when the <Delete> key is pressed on the keyboard. This is so that I can intercept it and if the focus is on my datagrid, I will display a confirmation...
1
1586
by: Kejpa | last post by:
Hi! How can I detect if Shift (and/or Ctrl and/or Alt) is pressed in the click event of a ToolBar button? TIA /Kejpa
5
13828
by: Michael Moreno | last post by:
Hello, I would like to cancel an action if the user holds the shift key while the application is starting-up. Would you know what is the best way to do so please? Thanks, Michael
4
20687
by: tylertacky | last post by:
Ok, I'm pretty new to python, so this might be a stupid question. I'm trying to write a simple text-based pong clone, and I can't figure out how to read key presses to move the paddles. I just need...
9
2133
by: shir | last post by:
hi.. i need help with this program. this is a program to turn 'ON' and 'OFF' 1 LED using 2 push buttons. the underline statement suppose to wait for button press. but it is alway false even i have...
2
4412
by: jodleren | last post by:
Hi I want to open a window using JS, when a button is pressed. In the new window I'd like to check for which button was pressed. For cetain reasons, I'd like not to have that in the URL. What...
2
3537
by: newbiegalore | last post by:
Hello everyone I have just finished going through some tutorials on developing extensions for mozilla and have made a version of the born-geek toolbar. Being a newbie I am stuck at a relatively...
0
7007
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
7171
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,...
1
6893
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...
0
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.