Results 1 to 3 of 3
  1. #1
    Alphix is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    61

    How do I programmatically resize "Label" to what ever text?

    How do I programmatically resize "Label" to what ever text?



    I have text that can be a paragraph sometimes and then a small sentence.

    I would like to automatically resize a label as desired using VBA.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Why is label caption dynamic? Is this actually a textbox bound to field? Textboxes on report automatically grow in height to fit content.

    Programmatically changing size of label control to fit content is not practical, especially with proportional font.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    As June7 said, doing this kind of thing without using a mono-spaced or fixed-width font is simply not practical. Like him, I have to wonder about what, exactly, you underlying need is, here. There may be other ways to accomplish your task, but we need to know your needs are, here.

    Linq ;0)>

Please reply to this thread with any new information or opinions.

Similar Threads

  1. "Label" field according to parameter query
    By Ada01 in forum Queries
    Replies: 1
    Last Post: 04-09-2014, 02:48 PM
  2. Replies: 2
    Last Post: 01-18-2014, 08:42 PM
  3. Replies: 3
    Last Post: 04-22-2013, 06:08 AM
  4. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  5. Replies: 1
    Last Post: 04-29-2010, 05:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums