I managed to figure it out (trial & error). Here's my code:
Private Sub Form_Load()
CommandBars.ActiveMenuBar.Enabled = False 'Turn Access' Menu Bar
OFF !!
DoCmd.ShowToolbar "Form View", acToolbarNo
DoCmd.ShowToolbar "Formatting (Form/Report)", acToolbarNo
End Sub
However, if someone has any good start-up & clean-up (while exiting)
routines, could you please post it as I'd like to incorporate it into
my package.
Best Rgds,
Prakash.
pr*************@gmail.com wrote:
When my application starts 2 toolbars still remain open
1) Form View and
2) Formatting (Form/Report) Toolbar
Also ... Access's default Menu-Bar also remains open.
How to switch it off at the beginning of my application using VBA and
then switch it back on within the exit routine of my application ?
Best Rgds,
Prakash.