Sleekmac
Registered User.
- Local time
- Today, 18:30
- Joined
- Sep 25, 2006
- Messages
- 34
I have a large macro that calls a bunch of queries, and somewhere in the middle I need to put a piece of VBA code that is stored in a module.
So my macro looks like this:
openQuery
openQuery
openQuery
openQuery
openModule
openQuery
openQuery
openQuery
The module is a blend of select and action queries with loops, etc. all taking place on a table contained in the database. When I run the macro, it is not executing the Sub in the module. I'm trying to decipher the MS Access help, and it looks like the openModule function only opens the module in Design mode, which I cannot think of one real-world application for. How do I go about opening the module and then Running it?
Thanks in advance,
Don
So my macro looks like this:
openQuery
openQuery
openQuery
openQuery
openModule
openQuery
openQuery
openQuery
The module is a blend of select and action queries with loops, etc. all taking place on a table contained in the database. When I run the macro, it is not executing the Sub in the module. I'm trying to decipher the MS Access help, and it looks like the openModule function only opens the module in Design mode, which I cannot think of one real-world application for. How do I go about opening the module and then Running it?
Thanks in advance,
Don