M
mrmarmite
Hi,
I have a report where I would like to show only the labels of a Yes/No
box if the value of that box is True. I include the following code
which works just fine. However, Each of these labels is to the right of
the one before it, in the layout. Therefore, for example, if Feature1
was True, Feature2 False and Feature3 True the report would show
Feature1 Feature 3, ie with a gap between them.
What Iwould like to do is concatenate these labels. The obvious way to
do that would be to define the left positon of the label. If it's True,
then add a value to that left position for the placement of the next
True label. However, I can't see to find any VB that will allow me to
set the left position of the label. Any help anyone?
Thanks
James
If Me![Feature1] Then
Me!Label_Feature1.Visible = True
Else
Me!Label_Feature1.Visible = False
End If
If Me![Feature2 Then
Me!Label_Feature2Visible = True
Else
Me!Label_Feature2.Visible = False
End If
If Me![Feature3] Then
Me!Label_Feature3.Visible = True
Else
Me!Label_Feature3.Visible = False
End If
I have a report where I would like to show only the labels of a Yes/No
box if the value of that box is True. I include the following code
which works just fine. However, Each of these labels is to the right of
the one before it, in the layout. Therefore, for example, if Feature1
was True, Feature2 False and Feature3 True the report would show
Feature1 Feature 3, ie with a gap between them.
What Iwould like to do is concatenate these labels. The obvious way to
do that would be to define the left positon of the label. If it's True,
then add a value to that left position for the placement of the next
True label. However, I can't see to find any VB that will allow me to
set the left position of the label. Any help anyone?
Thanks
James
If Me![Feature1] Then
Me!Label_Feature1.Visible = True
Else
Me!Label_Feature1.Visible = False
End If
If Me![Feature2 Then
Me!Label_Feature2Visible = True
Else
Me!Label_Feature2.Visible = False
End If
If Me![Feature3] Then
Me!Label_Feature3.Visible = True
Else
Me!Label_Feature3.Visible = False
End If