Solved

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

Posted on 2015-01-19
1
189 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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