Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Access Reports (https://www.askmehelpdesk.com/showthread.php?t=8926)

  • Apr 8, 2005, 07:23 AM
    charlieO
    Access Reports
    I need to dynamically size a text box in an access report, depending on the value of a field on that line. For some lines it must show the text box and others it mustn't. And it must be able to resize the text box depending on how much text I need to display.

    Is this possible in Access and How, if so?
  • Apr 8, 2005, 09:38 AM
    ScottGem
    A text box has 2 properties; Can Shrink and Can Grow. If you set these properties to yes, it will automatically change its height (not the width) to fit the amount of text within the control.

    You can also set the Visible property of the control based on a value in another control/field. You would do this in the On Format event of the Detail band. Something like:

    If Me!othercontrol = x Then
    Me!textbox.Visible = True
    Else
    Me!textbox.Visible = False
    End If
  • Apr 11, 2005, 12:56 AM
    charlieO
    It does help. Now its just a case of positioning the footer to show / grow at the right place.

    Thanks for the help.

    Quote:

    Originally Posted by ScottGem
    A text box has 2 properties; Can Shrink and Can Grow. If you set these properties to yes, it will automatically change its height (not the width) to fit the amount of text within the control.

    You can also set the Visible property of the control based on a value in another control/field. You would do this in the On Format event of the Detail band. Something like:

    If Me!othercontrol = x Then
    Me!textbox.Visible = True
    Else
    Me!textbox.Visible = False
    End If

  • Apr 11, 2005, 05:23 AM
    ScottGem
    Quote:

    Originally Posted by charlieO
    It does help. Now its just a case of positioning the footer to show / grow at the right place.

    Thanks for the help.

    Page footers size up from the bootm of each page. Group footers appear at the end of a group. Whenever you set a control within a band to Can Grow, it automatically sets the Can Gro property of the band to Yes.

  • All times are GMT -7. The time now is 12:49 AM.