473,396 Members | 1,706 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,396 software developers and data experts.

Automatically moving from tab to tab

iBasho
16
I have developed a form with 5 tabs (2 of which have subforms). Currently, the users get to each tab by clicking on the tab at the top when they are finished entering data on that page. (it does not move to the next tab when the user gets to the bottom of the page. I do have two subform on tabs 2 and 4 which will allow a user to add unlimited number of records). Is there a way that the focus will move to the next tab once the user reaches the last field on the previous page? Is there anything special that needs to be done on the tabs that have subforms?

Thanks in advance for your help!
Mar 2 '07 #1
5 2042
MSeda
159 Expert 100+
you can use the following code to go to another page when the Tab key is pressed.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Equipment_Notes_KeyDown(KeyCode As Integer, Shift As Integer)
  2.  
  3. If KeyCode = 9 Then ' 9 is the tab key
  4. DoCmd.GoToControl "Page77" 'what ever the name of you page is
  5. End If
  6.  
  7. End Sub
you could also add the keycode for the arrow keys if you like
Mar 2 '07 #2
iBasho
16
Thanks for the reply MSeda. Unfortunately it did not yield good results.
When I tab through the fields and I am on the last field for that page it enters a new record and the focus does not move to the next tab (page). Even when I am finished tabing through that second record it returns the focus on the first field of the first record on that same tab (page).

This is the code I entered:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Equipment_Notes_KeyDown(KeyCode As Integer, Shift As Integer)
  2. If KeyCode = 9 Then
  3. DoCmd.GoToControl (Page3)
  4. End If
  5. End Sub
Mar 5 '07 #3
Rabbit
12,516 Expert Mod 8TB
Have you tried "Page3" like in MSeda's example instead of (Page3)?

You might also want to make sure it's the last control on the tab before executing the code with a .TabIndex check.
Mar 5 '07 #4
iBasho
16
Thanks Rabbit. Fixed the problem.
Mar 5 '07 #5
Rabbit
12,516 Expert Mod 8TB
Not a problem.
Mar 5 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: SPG | last post by:
Hi, I am new to C# moving from Java. I was wondering if there is a way to automatically add a using statement when attempting to use a class that is not yet referenced by your code? JBuilder...
1
by: dschectman | last post by:
I have an interesting issue. I need to implement a dynamic table to mimic a select list. Each time you double click from the master list, a row is added to the list of selected items. The list...
2
by: Diogo Alves - Software Developer | last post by:
Greetings I would like to knowhow can I put a sliding panel... I've done this: if (panel1.Width < 300) { while (panel1.Width < 300) { panel1.Width = panel1.Width + 40;
0
by: linkswanted | last post by:
World Moving & Storage Moving Companies and Movers We would like to take this opportunity to introduce "World Moving & Storage" to You. "World Moving & Storage" is well established, Fully...
0
by: linkswanted | last post by:
Moving Companies California http://www.movingcompanies.co.il california movers, los angeles movers, moving in california, moving to CA, Moving company los angeles, moving to los angeles.
0
by: linkswanted | last post by:
Free Moving Estimate, Local Movers, Long Distance Moving, Packing Supplies, Storage Rental, Home Moving, Apartment Moving, Office Moving, Commercial Moving, Moving Companies in your area....
0
by: linkswanted | last post by:
http://www.movingcompanies.co.il/supplies/boxes.html http://www.movingcompanies.co.il/residental/ http://www.movingcompanies.co.il/commercial/corporate-moves.html...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
15
by: mcjason | last post by:
I saw something interesting about a grid pair puzzle problem that it looks like a machine when you find each that work out the way it does and say with all the others that work out the way they...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.