Solved

Disable Format MINI Toolbar in Access

Posted on 2014-11-25
4
252 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
view mode vs edit mode 17 47
Export  Access Query To Excell 16 44
Password on a button in Access 2013 7 34
Need more help autopopluating a number field 17 30
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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 …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

914 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

21 Experts available now in Live!

Get 1:1 Help Now