Solved

What is the equivalent of F11 in code?

Posted on 2006-11-08
3
399 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

773 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