?
Solved

What is the VBA code to minimize a form?

Posted on 2003-11-04
6
Medium Priority
?
4,685 Views
Last Modified: 2010-08-05
Hi Experts,

What is the VBA code to minimize a form? Thanks
0
Comment
Question by:indyng
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 18

Expert Comment

by:lludden
ID: 9680366
DoCmd.Minimize
0
 
LVL 10

Accepted Solution

by:
perkc earned 80 total points
ID: 9680390
docmd.SelectObject acForm,"FormName"
docmd.Minimize

perkc
0
 
LVL 1

Author Comment

by:indyng
ID: 9680430
Where is the comment?
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 6

Expert Comment

by:bknouse
ID: 9680455
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
ID: 9680464
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
ID: 9680494
I just assumed you only needed the code.

Sorry to have seemed hasty:)
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

764 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