Invalid form number reference (application or object defined error)

L

Lars Brownies

I'm trying to push form A's button from form B, like this:
Call Forms.FormA.btnQS_Click

It worked before on several other forms.

Now I'm getting the error: 2456 Invalid form number reference.
I can't see what I'm doing wrong, since I use the exact same button name.
Any idea's?

Thanks,
Lars
 
L

Lars Brownies

Never mind. I found it.
The button that is called has to have a public sub.

Lars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top