Solved

Accecss 2010 - new Navigation Control

Posted on 2013-01-30
1
370 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

770 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