DoCmd.Close acForm, frmName not working
Playing with the old VB form in MS Access, I have this weird error. I have 2 forms: form1 and form2, when I am in form2 there is a close b...

I have 2 forms: form1 and form2, when I am in form2 there is a close button there, and when I press that button which has a button click action:
DoCmd.Close acForm, form2.Name
The form is not closing.
Solution:
Just remove the parameters:
DoCmd.Close
Why? I'm honestly not sure. But maybe that function is unable to call the close event in the form?
Post a Comment