Code dependant on if a form is open or closed

  • Thread starter Thread starter Mark Senibaldi
  • Start date Start date
M

Mark Senibaldi

Hi,
I have 2 forms (frm_1 & frm_2). After I click on a command button I want
frm_1 to close ONLY IF frm_2 is open. If frm_2 is not open then I want frm_1
not to close. What code could I use to accomplish this?
 
Thanks. Does this code have to be in a function in a module or can it be in
the command button?
 
Back
Top