
Originally Posted by
amrut
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.