Minimize Form from other form

  • Thread starter יריב החביב
  • Start date
×

יריב החביב

Hello,

Please,

i know to minimize form when i situated in the form that i want to minimize
but,

What is the code for minimize (or close) form when i situated in other form.

thank you
 
K

Ken Sheridan

To minimize another form:

Forms("YourOtherForm").SetFocus
DoCmd.Minimize
Me.SetFocus

To close it:

DoCmd.Close acForm, "YourOtherForm"

Ken Sheridan
Stafford, England
 
×

יריב החביב

thank's
--
תודה רבה


Ken Sheridan said:
To minimize another form:

Forms("YourOtherForm").SetFocus
DoCmd.Minimize
Me.SetFocus

To close it:

DoCmd.Close acForm, "YourOtherForm"

Ken Sheridan
Stafford, England
 

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