Solved

msaccess 2000 to msaccess 2007

Posted on 2013-12-03
5
254 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
ID: 39692514
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
ID: 39694502
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
ID: 39698477
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
ID: 39698853
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
ID: 39699329
thank you
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

815 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

11 Experts available now in Live!

Get 1:1 Help Now