Link to home
Start Free TrialLog in
Avatar of AAlpha1
AAlpha1

asked on

What is the correct syntax for DoCmd.Close (...... an Access Form ........). Executed from another Form Code

If the action of closing the form is requested in the code belonging to the form, "mx " posted solution:
DoCmd.Close acForm, Me.Name
Worked.

But if I am in a different form code, and I want to close two other forms, the "solution" does not tell Access which form to close. How do I specify the form names I want to close in the DoCmd.Close acForm

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AAlpha1
AAlpha1

ASKER

Worked perfectly. Thank you.