Easy Question: Run Module within a Macro (1 Viewer)

BlackOnBlack

Registered User.
Local time
Today, 08:28
Joined
Apr 21, 2006
Messages
24
I have a Macro that runs several queries to update a table and wanted to run a Module within the Macro. I haven't figured out how to add that step. Can someone tell me how to run a Module within a Macro?
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 05:28
Joined
Aug 30, 2003
Messages
36,118
The action would be RunCode. FYI, you don't run the module, you run the desired function within that module.
 

BlackOnBlack

Registered User.
Local time
Today, 08:28
Joined
Apr 21, 2006
Messages
24
I might be missing something. I have a Module called "EmailMod". I added a new RunCode action within the Macro and typed "EmailMod" in the Function Name field. The Macro gives an error message when it gets to this step.
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 05:28
Joined
Aug 30, 2003
Messages
36,118
Again, you don't run a module. What is the name of the function within that module you want to run? The function name argument would be

FunctionName()

include the parentheses if EmailMod is the name of the function, as they are required in my experience.
 

Users who are viewing this thread

Top Bottom