Solved

msaccess 2000 to msaccess 2007

Posted on 2013-12-03
5
256 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA modules import 4 53
Need Help with Mapping ONLY 9 24
Date Formatting on Userform Print 5 26
How do I restore Office 365 Outlook data files from a crashed HDD. 9 19
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…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
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…

808 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