Fine-tuning the Zoom Box function in VBA

Posted on 2006-05-12
Last Modified: 2009-12-16
For memo fields on a form where there's not a lot of room, I often add an "on doubleclick" event that automatically opens Access's built in zoom box...

    DoCmd.RunCommand acCmdZoomBox that the user can see more of the text at once. When the zoom box first opens, though, it displays its text in a default font and point size that's somewhat small. The zoom box has a "Font" button that allows you to manually make the text larger and/or in a different font, but I'm wondering if it's possible to set the properties of the zoom box in VBA so that it automatically displays in a different and/or larger font when it first opens? Thanks in advance.
Question by:rmbonds
    LVL 61

    Accepted Solution

    As far as I know, It can't be done through VBA.  This url walks you through making a copy of Utility.MDA and modifying that copy to use the font you need.  For what it's woth, I just tried this and was unable to open the Zoombox for in design view.  You might have better luck:
    LVL 38

    Expert Comment

    I agree with Miriam that , according to published sources (see link), there is no way.


    However, here is an idea for you if you want to experiment with it. Try using  SendKeys to send the [Shift][F2} to the zoombox.  Try it both ways.
    one way:

    Private Sub Yourtextbox_doubleclick()
    DoCmd.RunCommand acCmdZoomBox
    End Sub

    the second way:
    Private Sub Yourtextbox_doubleclick()
    DoCmd.RunCommand acCmdZoomBox
    End Sub


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    In the previous article, Using a Critera Form to Filter Records (, the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
    QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 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

    17 Experts available now in Live!

    Get 1:1 Help Now