Results 1 to 3 of 3
  1. #1
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124

    How to refer to new MS 2010 Navigation Menu's

    MS 2010 has a new set of contrils called Navigation. I want, when the application is opened and a Navigation Menu choice is activzzated to get the Form opened by the Navigator control. The Form that opens (after a Password dialog box) is called frmMainMenu and it shows a horizontal Menu set of choices with matching choices in a vertical set of Menu choices.


    he horizontal Menu navigator is called ncMain and each Navigator button is called nbCommittee etc, The vertical navigator has a particular set to menu choices related to the nbCommittee (each choice unique name) and they are called nbName where name is unique for each button. I would like to refer to the nbNameproperty called "navigation target Name" TThis is where the name of the form called by nbName is located. The control holding these forms is named MenuNavSubform. Ther appears to be little info regarding how to refer to these controls. ANy help woild be appreciated as every time a new form is opened I need to reset a global TempVars("tvFName") to a new value = to the property in the "navigation target Name" Any help would be appreciated.

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    The control holding these forms is named MenuNavSubform. Ther appears to be little info regarding how to refer to these controls. ANy help woild be appreciated as every time a new form is opened I need to reset a global TempVars("tvFName") to a new value = to the property in the "navigation target Name" Any help would be appreciated.
    That's the way navigation form works. Only one form is loaded at a time. So the source object will change to the corresponding form.It is just like subform and can be referred as , like in your case, within the form's module, Me.MenuNavSubform.SourceObject

  3. #3
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124

    Can you capture Form chosen by Navigator control at highest level

    Quote Originally Posted by amrut View Post
    That's the way navigation form works. Only one form is loaded at a time. So the source object will change to the corresponding form.It is just like subform and can be referred as , like in your case, within the form's module, Me.MenuNavSubform.SourceObject
    In effect what I want to do is when the user presses Shift F1 key an AutoKeys routine is called and the function called by the AutoKeys macro would capture the name of the current form called by any one of the Navigator menu choices shown in the MainNavSubForm. I am trying to avoid putting code on every Navigator button and there are quite a few. Is there any way to do this? I can accomplish this with code placed on the Click event of the button on the ncMain control (this is the name of the Main Navigation horizontal control (It brings up navigation buttons on the Left vertical navigation buttons.) I use
    Code:
     TempVars("tvHelpFile") = Me.MainNavSubform.Form.Name
    but I have to place this code on every click event for every menu choice and also on the Click events for the Left vertical set of navigation buttons. Any help would be appreciated as there is very few examples shown in any book or Help screen.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 09-09-2014, 09:36 AM
  2. Help making navigation form/main menu
    By tmpgovrel in forum Access
    Replies: 3
    Last Post: 09-06-2013, 02:41 PM
  3. Navigation Menu and Search Form error
    By pbouk in forum Forms
    Replies: 5
    Last Post: 03-06-2013, 12:42 PM
  4. Replies: 6
    Last Post: 10-26-2012, 09:28 AM
  5. Replies: 0
    Last Post: 09-25-2012, 09:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums