Ask Experts Questions for FREE Help !
Ask
    charlieO's Avatar
    charlieO Posts: 2, Reputation: 1
    New Member
     
    #1

    Apr 8, 2005, 07:23 AM
    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?
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #2

    Apr 8, 2005, 09:38 AM
    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
    charlieO's Avatar
    charlieO Posts: 2, Reputation: 1
    New Member
     
    #3

    Apr 11, 2005, 12:56 AM
    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
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #4

    Apr 11, 2005, 05:23 AM
    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.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

MS Access Reports [ 4 Answers ]

Hello all, I need to make a report on access and I need a count of records, that will need to satisfy 2 conditions. For example: records should be counted if the on the Sex column is "M" and the rating column is "2". Any ideas? This is very easy if you filter the records on a table,...

Access 2000 and Crystal Reports 8.5 [ 1 Answers ]

I am in the process of developing an application using Access 2000. I have not been able to find anything on what I want to do. My question is I have setup a switchboard to access reports and forms, I want to have a botton which would do the following items (behind the scenes) 1) execute a...


View more questions Search