Solved

What is the VBA code to minimize a form?

Posted on 2003-11-04
6
4,375 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 20 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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…

724 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