×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Eliminating toolbars

Eliminating toolbars

Eliminating toolbars

(OP)
I'm running into a problem with toolbars taking up too much space on users' screens when they are in a lower resolution (800x600), but I can't find a way to stop the toolbars from showing.  Is there some code I could put behind a form or something else I could do that would suppress the display of any toolbars?  The toolbars really shouldn't show unless I'm doing design work anyway.

By the way, if I try to right click on the toolbars (or even a control on a form, for that matter), the normal options menu is not displayed...nothing is displayed.

Currently I'm using the .adp file.  Do I need to go to the .ade file for users to eliminate this problem?

Bob

RE: Eliminating toolbars

This is how I've done it: This runs on opening the initial form for the project.  

CODE

Public Sub HideAllToolbars()
Dim I As Integer

For I = 1 To CommandBars.Count
If CommandBars(I).Name <> "PMMonthlyRep" Then CommandBars(I).Enabled = False
Next I

End Sub

I have a custom toolbar PMMotnhlyRep which includes the items I want to make available to them.  

Remembering to re-enable toolbars when closing the database:

CODE


Public Sub AllowAllToolbars()

Dim I As Integer

For I = 1 To CommandBars.Count
CommandBars(I).Enabled = True
Next I

DoCmd.ShowToolbar "Print Preview", acToolbarWhereApprop

End Sub
  This runs when exiting the system.  Other custom toolbars open & close at different points - eg I have a custom toolbar when displaying a report.  


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close