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

Detecting when Tab is pressed

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.