Link to home
Start Free TrialLog in
Avatar of Milewskp
MilewskpFlag for Canada

asked on

What is the equivalent of F11 in code?

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.
Avatar of Serena2345
Serena2345
Flag of United States of America image

{F11}
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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