Toolbar and Menu bar chaos HELP!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm working on an upgraded Access 2.0 application. It is now in 2000 but has
all the old window, toolbar and menu bar code. It is a nightmare to maintain
and seems to work differently on every computer its installed on. The
simplest change seems to make the menubars and toolbars change and/or appear
and disappear at random.
I'd like to remove all the menubars and toolbars permanently and forever.
How can I do this?
 
If you have a form that opens when the application is launched, you can use
the OnLoad event with the following code (edit accordingly):

***********************CUT HERE*************************
Private Sub Form_Load()

'==================================================
'DATE: November 10, 2004
'AUTHOR: Type Your Name Here
'COMMENTS:
'
'1) Removes all Microsoft Access built-in toolbars.
'==================================================

Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i

End Sub
***********************END HERE*************************

Best regards,

Todd Shillam
 
Back
Top