Discussion:
Access COM add-in
(too old to reply)
Bob Eaton
2006-07-15 09:57:11 UTC
Permalink
When the user opens Access, my COM Add-in (created with VS.Net 2005) gets
the IDTExtensibility2.OnConnection and eventually the OnStartupComplete
calls.

According to the tutorial I followed to create it, the latter function is
where I should add my toolbar menus and buttons.

However, if Access is opened without a database opened, then it doesn't
allow menus to be added. If I try, I get the error message: "You must have a
database open to create custom toolbars"

But then when I finally open a database, the IDTExtensibility2 interface
doesn't seem to be called again...

So is there a way I can get my COM add-in to be called once a document is
opened (and each time a new database is opened thereafter)?

Like... is there a way to request a "database opened" event?

Thanks,
Bob
Cindy M -WordMVP-
2006-07-15 16:29:27 UTC
Permalink
Hi Bob,
Post by Bob Eaton
When the user opens Access, my COM Add-in (created with VS.Net 2005) gets
the IDTExtensibility2.OnConnection and eventually the OnStartupComplete
calls.
Again, this is WORD.VBA.Addins. Try in an Access forum or
office.developer.addins :-)

Cindy Meister

Loading...