Dear Ryan:
I'd like to suggest some terminology changes, assuming I've understood
you correctly.
A module is a collection of subroutines and functions (along with
declarations). You do not "run" a module, but you can "call" a
function or subroutine that is in the module. Saying "run" instead of
"call" would be quite clear, too.
If you're calling / running / invoking a function that is in a module
you do so just like you would from inside VBA:
FunctionName (Parameter1, Parameter2, . . .)
These Parameters can be constants, other functions, or columns in the
tables or queries included in the query containing the function. The
value returned by the function will appear as though it were replacing
the function call.
Keep in mind that the function in your module must be Public.
Is that what you were wanting to know?
How do I run a module from a query and pass the variables
from the module to the Query?
thanks, Ryan
Tom Ellison
Ellison Enterprises - Your One Stop IT Experts