Toolbar and Menu bar chaos HELP!

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?
 
T

Todd Shillam

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top