Macro to fire a module

M

MK

Am finishing up my first Access app. Thanks again to all who helped along
the way.

Need the user to import a table into Access, then fire the module I wrote.
I've been
going into the vba editor and hitting run from the menu to fire the module.
Is there
a better way ?

Thanks - Mike
 
A

Allen Browne

You cannot run a module.
You can run a Sub or a Function in a module.

Assuming that the code you wish to run is a function (not a sub), use the
RunCode action to fire it from your macro.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top