Add-in help again!

  • Thread starter Thread starter Alastair MacFarlane
  • Start date Start date
A

Alastair MacFarlane

Dear All

If I try to create a wizard in Access that creates a
module in the database that loads the add-in, the code
line...

DoCmd.RunCommand acCmdNewObjectClassModule

fails because it is trying to create the module in the mde
locked add-in. How do I tell the add-in to create the
module in the database that is hosting the add-in and not
the add-in itself. I have tried looking at samples but
there are none that specifically deal with modules. They
seem to refer to form class modules.

Thanks for your help.

Alastair
 
Terry,

Thanks for the response. Some of our systems are running
Access 97. How would I refer to a version of Access 97,
because currentproject was introduced with Access 2000?

Thanks again.

Alastair MacFarlane
 
Terry,

Thanks for your help. I will look over it and if I have
any further questions I will re-post. I appreciate your
help.

Alastair
 
Back
Top