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

Outsourcing

Are you looking for freelancers in the Philippines? Get in touch.

Donations

If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.

item