Results 1 to 3 of 3
  1. #1
    rayc is offline Novice
    Windows XP Access 2002 (version 10.0)
    Join Date
    Dec 2005
    Location
    Montreal, Canada
    Posts
    19

    vertical align an Access report's textbox

    I have a report with a large textbox. The text box has enough space to display about three lines of text. However, when there is just one line of text to display it displays on the first line. How do I center it vertically? In other words, one line of text should appear on line 2. I.E. in the middle.


    There is no etxtbox property that does this.

    Thanks!

  2. #2
    StepUP is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Dec 2005
    Posts
    99
    You would have to use a fixed width font (such as Courier) and calculate the number of characters that fit on 1 line.

    Add some code on the Format event for the detail line of the report and check if the number of characters in the text box are less than or equal to the one line maximum. If so, add a vbCrLf before the beginning of the text.

  3. #3
    rayc is offline Novice
    Windows XP Access 2002 (version 10.0)
    Join Date
    Dec 2005
    Location
    Montreal, Canada
    Posts
    19
    Unfortunately, I cannot change the font, my client does not want me to. It's for an important "presentation" report. Is it safe to assume that Access does not provide a "vertical justify center" button. It has a horizontal justiry center button in the toolbox. Why not the other? Strange.

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

Similar Threads

  1. Keeping text in a report textbox
    By Hawkx1 in forum Reports
    Replies: 2
    Last Post: 11-13-2008, 04:11 PM
  2. total in textbox
    By micfly in forum Access
    Replies: 3
    Last Post: 11-09-2008, 11:24 AM
  3. Vertical Fields on Report
    By jocallahan in forum Reports
    Replies: 3
    Last Post: 10-09-2008, 07:22 PM
  4. Textbox will not allow input
    By cwf in forum Forms
    Replies: 0
    Last Post: 04-04-2008, 04:08 PM
  5. dynamic textbox
    By vam in forum Programming
    Replies: 1
    Last Post: 06-04-2006, 08:59 AM

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