Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Disable Format MINI Toolbar in Access

Posted on 2014-11-25
4
Medium Priority
?
346 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

877 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