Closing code module.

highandwild

Registered User.
Local time
Today, 17:10
Joined
Oct 30, 2009
Messages
435
I am using the following code:

DoCmd.OpenModule strModuleName

to open a code module to compile a list of procedures in the module.

It all works fine but I then need to close the module and that is where I am stuck.

DoCmd.Close acModule, strModuleName, acSaveNo

does not work.

Any suggestions anyone?

Thanks
 
Use Call module name e.g. assume module name is save_data then you would use
Call save_data
 

Users who are viewing this thread

Back
Top Bottom