Call button_click from module

L

Lars Brownies

Hi,

From a function in a module I'm calling the following function:
Call forms.MyForm.MyButton_click
but I keep getting error 2465 (Error defined by application or object).

Any ideas?

Lars
 
T

Tom van Stiphout

On Sat, 21 Mar 2009 07:46:08 +0100, "Lars Brownies"

Make sure that procedure is Public, rather than the default Private.

-Tom.
Microsoft Access MVP
 
L

Lars Brownies

Thanks!

Tom van Stiphout said:
On Sat, 21 Mar 2009 07:46:08 +0100, "Lars Brownies"

Make sure that procedure is Public, rather than the default Private.

-Tom.
Microsoft Access MVP
 
Top