Results 1 to 4 of 4
  1. #1
    joe55555 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    24

    textbox in a continuous form can be WRAP ?

    hello,



    i have a textbox in a continuous form.

    what i need is when the text is long, i want the textbox to wrap as it does in excel (vertically) so the text will be all visible i don't want to use the scroll bar.

    i searched many places i couldn't find any topic concerning that!!! :S

    any ideas please ?

    thank you

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    The text will wrap but if the text is longer than the size of textbox, the scroll bars will display.

    Textboxes on report have a CanGrow property, not on form - that's why there's a scroll bar.
    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
    joe55555 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    24
    that's why i need to wrap the textbox without the use of scroll bar.
    i guess there must be a code that tests the length of the text and of the textbox and then allow the text to stretch the textbox vertically automatically once the text is larger than the textbox size.
    did you get my idea ?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    The question has been asked before. The answer is - probably not. Most people use proportional fonts which means characters have different widths so it is not as simple as counting the number of characters, which is what Len function does. And not only are the characters different widths but characters will be different sizes and different spacing between characters for different fonts. And if you could somehow determine the actual total width of all the characters and spaces and set the textbox height, if the form controls are arranged vertically, the resized textbox would cover or be covered by controls below it. Also, setting a form control's property affects that property for ALL instances of the control, they would ALL show the size of the most recent setting.
    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.

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

Similar Threads

  1. Wrap Text in report
    By waqas in forum Reports
    Replies: 1
    Last Post: 06-27-2012, 09:31 AM
  2. Obtain value of textbox - continuous form
    By jgelpi16 in forum Programming
    Replies: 1
    Last Post: 03-31-2011, 07:54 AM
  3. Wrap line
    By devcon in forum Reports
    Replies: 1
    Last Post: 10-22-2010, 09:46 AM
  4. Can you wrap text in a Combo Box ?
    By softspoken in forum Forms
    Replies: 5
    Last Post: 03-21-2010, 05:32 AM
  5. wrap text
    By kamolrat in forum Reports
    Replies: 1
    Last Post: 11-17-2009, 01:36 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