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
Solved

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

809 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