Module runs twice

  • Thread starter Thread starter samjaynes
  • Start date Start date
S

samjaynes

I created a module and made it an add-in. If I run the code directl
from the visual basic editor, it runs just fine. If I create
customized menu option and assign the macro/sub to it (for example
ADO_UpdateDB() ) it runs through the code completely -twice-.

I am wondering what is causing it to run twice????

Any assistance would be appreciated
 
There are any number of reasons for this. Often It has to do with a recursive
call, but without seeing your code I can't tell. Are there any event triggers
such as on_change or such. They are a good place to start looking...
 

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

Back
Top