?
Solved

Accecss 2010 - new Navigation Control

Posted on 2013-01-30
1
Medium Priority
?
386 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

862 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