How to Fix Docmd.close Acform 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...
https://www.czetsuyatech.com/2021/07/c-do-cmd-close-not-working.html
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 button there, and when I press that button which has a button click action:
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?
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