Hello,
I have created an access (2000) addin that has two buttons, 'new report'
and 'new query'. Pressing the buttons calls the following code lines:
DoCmd.RunCommand acCmdNewObjectReport
And
DoCmd.RunCommand acCmdNewObjectQuery
Respectively.
The problem is, in some databases when you launch the addin and press
the buttons; you get a "Selection is not available at this time" error.
I believe this has something to do with either the menu or toolbar that
is being displayed. Does anyone know how to force the action? Or how
to load the toolbar / menu that is needed?
Cheers,
Padgett