wiklendt
i recommend chocolate
- Local time
- Today, 16:04
- Joined
- Mar 10, 2008
- Messages
- 1,746
what can i do?? i have a label and its control. when the control has no data, fine, the CanShrink property makes it disappear from my report, however, its label remains behind, making the report look 'unfinished' or not filled in properly. if the labels and associated white space from the label/control was shrunk also, then nothing would look out of place.
is there a way i can make the label disappear (along with the white space) if there is no data for that control? i've tried setting the seciton to shrink, but that doesn't work either. i think it treats a label as input on a report, so it doesn't shrink the section if there are labels in it.
i've tried placing and if statement with somethin to the effect of:
IF IsNull(me!control) Then label.visible = False End If
but access didn't like it, i guess that's the wrong approach. i'm afraid i can't remember the error message, but i could replicate it if people want me to.
thanks in advance.
agnieszka.
[edit]
there is no 'CanShrink' available to set for the labels
and the only other post that touches on this was remained unresolved in 2002!
[/edit]
is there a way i can make the label disappear (along with the white space) if there is no data for that control? i've tried setting the seciton to shrink, but that doesn't work either. i think it treats a label as input on a report, so it doesn't shrink the section if there are labels in it.
i've tried placing and if statement with somethin to the effect of:
IF IsNull(me!control) Then label.visible = False End If
but access didn't like it, i guess that's the wrong approach. i'm afraid i can't remember the error message, but i could replicate it if people want me to.
thanks in advance.
agnieszka.
[edit]
there is no 'CanShrink' available to set for the labels
and the only other post that touches on this was remained unresolved in 2002!
[/edit]
Last edited: