Bob Eaton
2006-07-15 09:57:11 UTC
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
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