T
tobesurveyor via AccessMonster.com
Hello all,
I have two forms, Form A and Form B. When I click on a control on Form A, I
have code to open Form B (Form B takes up only a portion of the screen, while
Form A has been maximized). When I click on Form A while Form B is open, I
would like for Form B to close. I have tried DoCmd.Close acForm, "FormB",
acSaveNo in the Lost Focus Event and the On Deactivate Event of the form.
Each time getting an error.
Could someone point me in the right direction of how to do this? Is there a
function besides DoCmd.Close that will need to be run?
Thanks,
Chris
I have two forms, Form A and Form B. When I click on a control on Form A, I
have code to open Form B (Form B takes up only a portion of the screen, while
Form A has been maximized). When I click on Form A while Form B is open, I
would like for Form B to close. I have tried DoCmd.Close acForm, "FormB",
acSaveNo in the Lost Focus Event and the On Deactivate Event of the form.
Each time getting an error.
Could someone point me in the right direction of how to do this? Is there a
function besides DoCmd.Close that will need to be run?
Thanks,
Chris