Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: MSAccess commands not available


Message #1 by "Padgett Rowell" <padgett@i...> on Tue, 17 Jul 2001 12:28:08 +0800
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


  Return to Index