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
AAlpha1Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Patrick MatthewsConnect With a Mentor Commented:
DoCmd.Close acForm, "Name of form goes here"
0
 
AAlpha1Author Commented:
Worked perfectly. Thank you.
0
All Courses

From novice to tech pro — start learning today.