Maximize Access

G

Guest

I want to run a macro or module that automatically maximizes "ALL"of Access
when I open my db. Right now I have a macro (autoexec) that starts up when I
startup my db that maximizes everything inside of access, but is it possible
to maximize Access itself?

Hopefully this makes sense
 
S

Steve Huff

Paste the following code in a module and call the function MaximizeAccess to
Maximize Access:
'//Start code-----------------------------
Declare Function ShowWindow Lib "User32" (ByVal Hwnd As Long, ByVal nCmdShow
As Long) As Long
Global Const SW_SHOWMAXIMIZED = 3

Function MaximizeAccess()
Dim Maxit%
Maxit% = ShowWindow(hWndAccessApp, SW_SHOWMAXIMIZED)
End Function
'//End Code ----------------------------

--Steve Huff
 
V

Van T. Dinh

In VBA code, you can use the statement:

DoCmd.RunCommand acCmdAppMaximize

to maximize the Access Application window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top