Solved

msaccess 2000 to msaccess 2007

Posted on 2013-12-03
5
250 Views
Last Modified: 2013-12-05
we have an application in msaccess 2000 that need to be converted to msaccess 2007.

In 2000 it runs the  RunCommand WindowHide in the autoexe macro. However in 2007 this does not work. How could i accomplish the same in 2007
0
Comment
Question by:Shen
  • 3
  • 2
5 Comments
 

Author Comment

by:Shen
Comment Utility
looking at the application more i noticed that the main form has on the property form open event: tools.hide toolbar and then on the close event: tools.show toolbar.  Maybe this is the problem and not my the runcommand windowhide. Please help.

thank you
0
 
LVL 20

Expert Comment

by:GrahamMandeno
Comment Utility
Hi Rick

What is the window you are trying to hide?  Is it the Navigation Pane (which used to be the Database Window)?

If so, go to Access Options > Current Database and uncheck Display Navigation Pane

If you need it done via the macro for some reason, then before executing the WindowHide command you must select something in the nav pane:

SelectObject Table, , Yes

Note that you do not have to specify the table name.

Best wishes,
Graham Mandeno [Access MVP since 1996]
0
 

Author Comment

by:Shen
Comment Utility
Sorry for not replying before. I was assigned to work on another task.

I put in the main_form open event:

DoCmd.ShowToolbar "Ribbon", acToolbarNo

and in a button that only shows for admins:

 DoCmd.ShowToolbar "Ribbon", acToolbarYes

This hides the ribbon but not the navation pane.

I will try to add the winodw hide.

Could you provide the specific commands to do this.
0
 
LVL 20

Accepted Solution

by:
GrahamMandeno earned 500 total points
Comment Utility
I understood from your original question that you were using a macro, not VBA code.  Not to worry - IMO it is much easier in code:
DoCmd.SelectObject acTable, , True
RunCommand acCmdWindowHide

Open in new window

-- Graham
0
 

Author Closing Comment

by:Shen
Comment Utility
thank you
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

My experience with Windows 10 over a one year period and suggestions for smooth operation
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now