I am using a navigation form with top navigation control named as "NavigationCont roTop" and left navigation control named as "NavigationCont roLeft". The subform where the main content is displayed is named as "NavigationSubf orm"
I had written VBA code for user control to display different content in "NavigationSubf orm" when the user log in.
Once a user log in, I had placed a code to set the focus to the related tab in the "NavigationCont roTop", the navigation button for the tab is "nvbProduction" :
me!nvbProductio n.SetFocus
This works, but does not seems to activate the navigation button.
I had also placed a code in the VBA to display the correct content in the "NavigationSubf orm" as below:
Me!NavigationSu bform.SourceObj ect = "Nav_DeptMainPa ge"
This works too.
The problem I faced now is How to display the correct content in "NavigationCont roLeft".
I had set different navigation buttons in the "NavigationCont roLeft" which display different sub menu and a different department is clicked in the "NavigationCont roTop", which works properly. But in VBA code, how am I going to refer to the different content?
I tried:
me!NavigationCo ntroLeft.setfoc us
me!NavigationCo ntroLeft.requer y
but does not work.
Any body can advice please?
Thank you
Beh Kea Chang
I had written VBA code for user control to display different content in "NavigationSubf orm" when the user log in.
Once a user log in, I had placed a code to set the focus to the related tab in the "NavigationCont roTop", the navigation button for the tab is "nvbProduction" :
me!nvbProductio n.SetFocus
This works, but does not seems to activate the navigation button.
I had also placed a code in the VBA to display the correct content in the "NavigationSubf orm" as below:
Me!NavigationSu bform.SourceObj ect = "Nav_DeptMainPa ge"
This works too.
The problem I faced now is How to display the correct content in "NavigationCont roLeft".
I had set different navigation buttons in the "NavigationCont roLeft" which display different sub menu and a different department is clicked in the "NavigationCont roTop", which works properly. But in VBA code, how am I going to refer to the different content?
I tried:
me!NavigationCo ntroLeft.setfoc us
me!NavigationCo ntroLeft.requer y
but does not work.
Any body can advice please?
Thank you
Beh Kea Chang
Comment