Solved

Disable Format MINI Toolbar in Access

Posted on 2014-11-25
4
304 Views
Last Modified: 2014-11-29
I have Access 2007 and 2010. Several Forms have Rich Text Textboxes. I am formating selectable text by HTML and VB code. The Format Mini Toolbar is getting in the way (hiding) other needed command buttons. Also I do not want the user to format via the Mini Toolbar. How may I disable? The Mini Toolbar may be disabled in Word, Excel and Powerpoint Options / General but not in Access. I have searched for Registry Hacks and various properties. This must be accomplished withing Access.
0
Comment
Question by:drlittle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 40465649
MINI Toolbar
Do you mean that floating toolbar that appears whenever you select a block of rich text?
I have not found a way to disable it...
...But it will go away when you hit the "Esc" key
...so try this on the MouseUp event:
   
    SendKeys "{esc}"

It worked for me, ...when a user selects the rich text with the mouse, it sends an "esc" key to the application, ...thus turning off the floating toolbar.
...a bit of a hack, ...but it might fit your needs...
;-)

The Mini Toolbar may be disabled in Word, Excel and Powerpoint Options / General but not in Access.
My guess is that you can format almost any text in those programs as HTML/Rich text.
In Access, Rich Text/HTML formatting is permitted only on the TextFormat=RichText fields

;-)

JeffCoachman
0
 
LVL 58
ID: 40466728
Nice work a round Jeff!

I saw this yesterday and was looking for a way to kill it and came up with nothing.

But rather than the mouse up event, I might try Got Focus so it works either way (keyboard or mouse) or do a little user training and tell them to hit esc when then need it out of the way (unless of course you don't need it at all).

Jim.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40467166
Jim,
Hey, ...
I tried GotFocus, ...but it did not work for me. (I only could test this in Access 2013)
My guess is that because the floating toolbar seems to appear directly after the users actually lets go of the mouse button (MouseUp?)...that I would try MouseUp.

To be fair, ...I only tried those two events, (Got Focus and MuseUp) ...so another one of the events might also work (or actually even be more fitting...)
;-)

As always, I only use Sendkeys as a last resort .

;-)

Jeff
0
 

Author Closing Comment

by:drlittle
ID: 40471769
Thanks Jeff,

This works but be careful where you place the SendKeys "{esc}" as it can interfere with routines in other ways. I ended going back to Total Access MEMO for rft editing. The MEMO RichText TextBox is not editor friendly and writing a simple editor myself did not warrant the extra trouble. My application needed to edit and underline text highlighted by the mouse cursor.

Regards,
Dave
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question