Solved

What is the equivalent of F11 in code?

Posted on 2006-11-08
3
397 Views
Last Modified: 2012-06-22
What is the equivalent of F11 (show database window) in code? Note: I'm not talking about changing the startup options, rather, I'd like to know how to show and hide the database window, without affecting the startup options.
0
Comment
Question by:Milewskp
3 Comments
 

Expert Comment

by:Serena2345
ID: 17900955
{F11}
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 17900985
try

'To Hide the database window
Docmd.SelectObject acTable, , True
Docmd.RunCommand acCmdWindowHide

'To show the database window
Docmd.SelectObject acTable, , True
0
 
LVL 18

Expert Comment

by:Data-Man
ID: 17901569
Try this

docmd.RunCommand acCmdWindowHide

Hides the database window (providing it is the only visible window)



docmd.RunCommand acCmdWindowunhide

If there is only one hidden window, the database window, it will be visible again.

HTH,
Mike
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.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

758 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

21 Experts available now in Live!

Get 1:1 Help Now