Running module code

mlopes1

Registered User.
Local time
Today, 00:32
Joined
Sep 4, 2002
Messages
76
I created a database level module (module1) with 2 functions in it called Open1 and Close1.

I have found documentation on using:
docmd.openmodule "module1", "Open1"

How can I actually run the function rather than just opening it?

I am trying to put this in on OnClick event on a command button. I know this is simple but help is much appreciated. Thank you!


Marco
 
If you're just trying to run one function from the button then in the event type:

=FunctionName()
 

Users who are viewing this thread

Back
Top Bottom