no

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...

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:


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?

Related

c# 5350541271366165168

Post a Comment Default Comments

item