Solved

Accecss 2010 - new Navigation Control

Posted on 2013-01-30
1
368 Views
Last Modified: 2013-01-30
I am the new 2010 navigation control as my main form navigation.  It works really well.  I have provided the functionality for the user to open and close various backend databases.  If the user 'closes' all the backend databases I want to disable all of the tabs that show data and default to the form that prompts the user to choose a backend.  

I can enable/disable navigation tabs by setting me.navClientView.Enabled=False, for example.

How do I simulate the user clicking on the tab I want to show?

(Using the old tab control, I could have coded something like:
tabMain=2
call tabMain_Change  

Open in new window

where 2 was the tab I wanted to switch to.
But the new navigation control doesn't work that way.

Each tab button has a name in the new control, and I want to switch to navSettings.  So, something like:
call navSettings_Click

Open in new window

but there is no code - it is now all done with the Navigation Target Name property.
0
Comment
Question by:MonkeyPie
1 Comment
 

Accepted Solution

by:
MonkeyPie earned 0 total points
ID: 38837291
I've solved it.

I needed to use the browseTo command:

DoCmd.BrowseTo acBrowseToForm, "frmSettings", "frmNavigation.NavigationSubform"
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now