Does anyone know about the can grow property? I am trying to hide a textbox when it is null. I do not have anything else on the line, but it still is not working. Am I missing something?
Hi! atray04, what you can do is, make the txt-box really samll and most importantly, bind it with some data (like =Date() , =Time() or any of your custom data), then: go to the properties of the text-box (right-click to propertieS) and write "YES" in front of the text-box's Can Grow and Can Shrink properties.
It does work, but when I added my labels back to the line it did not work. Can I not have labels on the line? And can I have only one control per line? Ill write an example out in a second.
That seemed like it would work. I did exactly what you said, but I received the error: Run-time error '2427':
You entered an expression thats has no value.
The expression may refer to an object that has no value, such as a form, a report, or a label control.
Hey ATray, correct me if I'm wrong, I guess what ur trying to say is: you have a text box and label associated wit hthe text box right? and you want the line to dissapear if the text-box is null. If you have the same text -box in several reports (with the same value), you might want to do this: put both the text box and the label in a seperate report,say: TextReport(make New in Design View).
Now, go back to your Main Report(Parent) and put the TextReport there,
-->the horizontal length of this subreport(TextReport) should be as long as the combined length of textbox/label inside it.
-->the vertical length of subreport (TextReport) should be a fraction of a line.
--> in the property of the subreport (TextReport)CanShrink and CanGrow property should be set to "Yes".
tell me if this is what u wanted..and iftheres a problem, pleas ecan you give me a basic description of the controls you want to play around with.
Ok, I put both my text box and label in a separate report. I wasn't exactly sure how to put my report in my main report so I created a textbox and put the control source pointing to the report. Please correct me if that was wrong. So when I view my report I get a error#.
Are you trying to shrink the whole row, and it's only this label and control on it?
If the text control is named txtMyText, try the following:
In the original report, remove the label, and make txtMyText very small (height). Add another text conttrol and remove it's label. Set the controlsource of the new textcontrol to:
[tt]="Your label text: " + [txtMyText][/tt]
Make it tiny, make the section tiny, both having the can grow properities set to yes.
Thank this will should fix my problem. How when I do exactly what you say my text box that has the control source pointing to: ="Your label text: " + [txtMyText] shows up as #ERROR? Ill try to messs around with it some more and see if I can fix it.
I've been fortunate enough to be able to use 0 as default value on numerics, so I haven't encountered this before. Interesting! Must be more elgant ways, but I made something like this work:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.