From: JamesJ on 10 May 2010 17:57 Access 2007 sp2. I'm using the tabbed interface. I've been trying to utilize the Navigation Pane ONLY when my main form (frmHome)is open or in front of other objects or forms. When any other object or form is in front I want the nav pane to be hidden not minimized like when one clicks the '<<' button in the top right of the nav pane because I want the screen spacer. Currently I have command buttons on the left side of my main form to open my forms but it would be nice to have access to other objects especially reports. Putting buttons for reports also on the main form just makes the form very cluttered. I'm currently using the following to hide the nav pane: DoCmd.SelectObject acMacro, "Autoexec", True DoCmd.RunCommand acCmdWindowHide And to redisplay the nav pane when I close the main form: DoCmd.SelectObject acMacro, "Autoexec", True Problem is I have created a custom nav pane which I will use to access my objects. I'm not sure where or if I should use the code above to hide and unhide the nav pane. I've tried using the On Close of the forms but if unide it but if I have another form open the nav pane will become visible at the wrong time. Again, when the main form is in front I want the nav pane to be visible. Of course if I don't have the Autoexec macro in my custom pane I'll have to reference something else. Any help will be appreciated, James
From: JamesJ on 10 May 2010 19:21 I found using the On Activate of each form to call the appropriate function woks fine. Didn't think of it prior to my post. James "JamesJ" <jjy(a)darwin_roadrunner.com> wrote in message news:eswYAvI8KHA.3276(a)TK2MSFTNGP02.phx.gbl... > Access 2007 sp2. > > I'm using the tabbed interface. > > I've been trying to utilize the Navigation Pane ONLY > when my main form (frmHome)is open or in front of other objects or forms. > > When any other object or form is in front I want the nav pane > to be hidden not minimized like when one clicks the '<<' button > in the top right of the nav pane because I want the screen spacer. > Currently I have command buttons on the left side of my main form > to open my forms but it would be nice to have access to other objects > especially reports. Putting buttons for reports also on the main form > just makes the form very cluttered. > > I'm currently using the following to hide the nav pane: > > DoCmd.SelectObject acMacro, "Autoexec", True > DoCmd.RunCommand acCmdWindowHide > > And to redisplay the nav pane when I close the main form: > > DoCmd.SelectObject acMacro, "Autoexec", True > > Problem is I have created a custom nav pane which I will use to access my > objects. > I'm not sure where or if I should use the code above to hide and unhide > the nav pane. > I've tried using the On Close of the forms but if unide it but if I have > another form open the > nav pane will become visible at the wrong time. > Again, when the main form is in front I want the nav pane to be visible. > Of course if I don't have the Autoexec macro in my custom pane I'll have > to reference something else. > > Any help will be appreciated, > James >
|
Pages: 1 Prev: Quote Form With Options - Repost Next: Internet Explorer 8 Update problem |