Solved

What is the VBA code to minimize a form?

Posted on 2003-11-04
6
3,680 Views
Last Modified: 2010-08-05
Hi Experts,

What is the VBA code to minimize a form? Thanks
0
Comment
Question by:indyng
6 Comments
 
LVL 18

Expert Comment

by:lludden
Comment Utility
DoCmd.Minimize
0
 
LVL 10

Accepted Solution

by:
perkc earned 20 total points
Comment Utility
docmd.SelectObject acForm,"FormName"
docmd.Minimize

perkc
0
 
LVL 1

Author Comment

by:indyng
Comment Utility
Where is the comment?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 6

Expert Comment

by:bknouse
Comment Utility
Just a few notes to the solution from lludden....

The object being minimized is the current selected form.  If the current selected form is not the form you want minimized, you must first make the form to be minimized the current selected form.

Minimizing a form puts an icon for the form on the task bar.  You may essentially do the same thing using the visible property of the form or using the hide method for the form.  These versions do not put an icon on the task bar.

Brent
0
 
LVL 39

Expert Comment

by:stevbe
Comment Utility
from a command button's click event on the form you want to minimize

Private Sub cmdMin_Click()
   DoCmd.RunCommand acCmdDocMinimize
End Sub

from a command button's click event to minimize the entire application
Private Sub cmdMin_Click()
   DoCmd.RunCommand acCmdAppMinimize
End Sub

Steve
0
 
LVL 10

Expert Comment

by:perkc
Comment Utility
I just assumed you only needed the code.

Sorry to have seemed hasty:)
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

12 Experts available now in Live!

Get 1:1 Help Now