Solved

Have tab on a tabbed form remain the focus when move through the records

Posted on 2015-01-19
1
188 Views
Last Modified: 2015-01-19
I have a tabbed form which when opened has the 1st tab being the active tab and this is the way I want it to work.  But also on the form is a combobox that allows the user to navigate through the records.  So if for example the user has the 3rd tab active on the current record and moves to another record, we want the 3rd tab to be the active tab on the record also.  Can this be done?

--Steve
0
Comment
Question by:SteveL13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
Simon earned 500 total points
ID: 40557986
Add something like this to the end of the code behind the combobox

'Assuming you have just requeried or navigated to another record
Me.TabControlName.Pages(3).SetFocus

This will RETURN the focus to the desired tab rather than keep it on the tab, so you may see some flicker.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weird Microsoft Access Error 8 41
Access syntax 1 34
Access query error 3 26
Access #Deleted data 20 43
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question