Solved

Disable Format MINI Toolbar in Access

Posted on 2014-11-25
4
238 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
  • 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 57
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now