Run Module Button Function

captnk

Registered User.
Local time
Today, 16:57
Joined
Dec 12, 2001
Messages
148
I have a button on a Form That runs a module.
However I am clearly missing something in the button code.
Every time I run the button I get the message
"Runtime error 2516
Microsoft access cant find Module '0.' "

The command i have attached to the button is
Private Sub Command55_Click()
DoCmd.SetWarnings False

DoCmd.OpenModule convertedMacro - PrintitM

According to help I should have some function attached to that with a " ," after the module name,but I dont get it ...
Can someone help me with whats missing in the code.
(The module otherwise works fine and prints the report from Xl which it is supposed to do)
 
I appear to have solved my own problem,(After a day and night of cursing)

The solution was to simply insert
="Modulename()
into the on click event of the command button box

Sounds simple,but for those unfamiliar wuth code and modules it wasnt
Thanx anyway
 

Users who are viewing this thread

Back
Top Bottom