Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-05-2009, 07:01 AM
Patrick.Grant01 Patrick.Grant01 is offline Windows XP Access 2007 (version 12.0)
Novice
 
Join Date: May 2009
Posts: 23
Patrick.Grant01 is on a distinguished road
Default Navigation Pane

I am trying to control the Navigation Pane to hide or minimise it. How is this done in VBA?

The only Navigation Pane Objects I can find are for Outlook .......
Reply With Quote
  #2  
Old 06-05-2009, 06:02 PM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,263
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

From ac2007 Help:
Quote:
If you prefer to create your own navigation system, you can hide the Navigation Pane by using the RunCommand macro action and the WindowHide argument. Running this macro action with this argument hides the Navigation Pane for the duration of the current database session.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
  #3  
Old 06-06-2009, 12:16 AM
Patrick.Grant01 Patrick.Grant01 is offline Windows XP Access 2007 (version 12.0)
Novice
 
Join Date: May 2009
Posts: 23
Patrick.Grant01 is on a distinguished road
Default Thx For Tip.....but.....

Thanks for the reply. I am still not quite there. If I create a Macro as you suggest and run the macro from the navigation pane, it works. But I am doing this in VBA and the form calling the VBA gets hidden, not the Naviagation bar. Examples I have tried in VBA below..

Sub testhide()
DoCmd.RunMacro ("Macro1") 'Runs macro which hides the calling form !!!!
End Sub

Sub testhide()
DoCmd.RunCommand acCmdWindowHide 'Hides calling form !!!
End Sub

From reading the Help, I think I should perhaps use the WindowHide method on the Naviagation Pane - but I don't know the object name for the Navigation Pane .....
Reply With Quote
  #4  
Old 06-06-2009, 03:53 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,263
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

Maybe this link will be helpful:
http://movefirstblog.wordpress.com/2...e-shutter-bar/
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
  #5  
Old 06-07-2009, 12:15 AM
Patrick.Grant01 Patrick.Grant01 is offline Windows XP Access 2007 (version 12.0)
Novice
 
Join Date: May 2009
Posts: 23
Patrick.Grant01 is on a distinguished road
Exclamation Still Not Got It

I am a bit closer but still not there yet...

I found this link on SendKeys which helped a bit as well - http://movefirstblog.wordpress.com/2...he-ribbon-bar/ . As proof of concept, I tried pressing F11 and Navigation Key rolls back the Navigation Pane shutter. I then tried some VBA to do the and I have checked it does execute. Well it does execute but the Navigation Pane shutter does not close. The VBA was:

SendKeys "^{F11}", True ' which does not work but it would be good if it did

I tried this in the open event of the first form loaded:

DoCmd.RunCommand acCmdWindowHide 'and it does work !!!

but the thing is I cannot reverse it. To control the Navigation Pane I need to Hide and Unhide it or to roll back the Shutter and then open the Shutter.
Reply With Quote
  #6  
Old 06-07-2009, 05:30 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,263
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

I'm out of suggestions, sorry.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
  #7  
Old 06-07-2009, 11:53 PM
Patrick.Grant01 Patrick.Grant01 is offline Windows XP Access 2007 (version 12.0)
Novice
 
Join Date: May 2009
Posts: 23
Patrick.Grant01 is on a distinguished road
Default

Thanks. Have you any idea where I might find further documentation / info on how to control the Navigation Pane in VBA ? Access 2002 help use to have the info. Books like Access 2002 Developers Handbook used to have it -but the book has not been re-written for Access 2007.

For some reason, it is not in the Basic of Access Help in Access 2007....

Thanks
Reply With Quote
  #8  
Old 06-08-2009, 12:14 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,263
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

I don't know if this book contains your answer or not.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
  #9  
Old 06-08-2009, 12:42 AM
Patrick.Grant01 Patrick.Grant01 is offline Windows XP Access 2007 (version 12.0)
Novice
 
Join Date: May 2009
Posts: 23
Patrick.Grant01 is on a distinguished road
Default

This book has only a single chapter on Access VBA...and it excludes anything on controlling the Navigation Pane. I think what I need is a book that is nothing but Access VBA.
Reply With Quote
  #10  
Old 11-29-2009, 06:54 PM
James3mc James3mc is offline Windows Vista Access 2007 (version 12.0)
Novice
 
Join Date: Nov 2009
Location: Wimbledon, SW London, UK
Posts: 19
James3mc is on a distinguished road
Default

So what we're saying is that no-one here actually knows how to do via VBA.

Excellent. Lots of kudos for the first person to crack it!
Reply With Quote
  #11  
Old 11-30-2009, 01:36 AM
Patrick.Grant01 Patrick.Grant01 is offline Windows XP Access 2007 (version 12.0)
Novice
 
Join Date: May 2009
Posts: 23
Patrick.Grant01 is on a distinguished road
Default

Quote:
Originally Posted by James3mc View Post
So what we're saying is that no-one here actually knows how to do via VBA.

Excellent. Lots of kudos for the first person to crack it!
Yep. I think Microsoft are trying to ensure any applications retain Access Features. So there appears to be no VBA that will do this, although there used to be ....
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control Navigation Bar Patrick.Grant01 Access 0 05-17-2009 04:16 AM
Database table navigation geoff44 Programming 0 12-13-2008 01:05 AM
Control navigation pane ohporter Access 0 05-27-2008 10:45 AM
Navigation Code henryclay Forms 2 11-15-2006 06:48 AM


All times are GMT -8. The time now is 02:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.