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
 
Top