R
Remco
To all,
I am trying to make a report showing the input for one record. The
record contains 31 fields relevant for the report. However, some of
the fields might be empty and therefore need not to be shown. In order
to have a decent lay out (the report is exported into Word) I am
trying to do the following.
If Me.ComplyGuidelines = "No" Then
Me.Label11.Visible = True
Me.Deviation.Visible = True
Else
Me.Label11.Visible = False
Me.Deviation.Visible = False
Me.Label11.Height = 0
Me.Deviation.Height = 0
TopValue = Me.Label10.Top
TopValue = (TopValue + 0.61) '** 0.61 is the height of Label10 +
margin
Me.Label12.Top = TopValue
Me.Rotterdam_CC.Top = TopValue
End If
I have two questions regarding this problem:
1. For some reason the value of 0.61 is not added to 'TopValue',
therefore Label12 is shown on top of Label10. Are calculations not
possible in VBA in reports?
2. Is this the way to go, or is there a much easier manner of creating
a properly formatted report?
TIA,
Remco
I am trying to make a report showing the input for one record. The
record contains 31 fields relevant for the report. However, some of
the fields might be empty and therefore need not to be shown. In order
to have a decent lay out (the report is exported into Word) I am
trying to do the following.
If Me.ComplyGuidelines = "No" Then
Me.Label11.Visible = True
Me.Deviation.Visible = True
Else
Me.Label11.Visible = False
Me.Deviation.Visible = False
Me.Label11.Height = 0
Me.Deviation.Height = 0
TopValue = Me.Label10.Top
TopValue = (TopValue + 0.61) '** 0.61 is the height of Label10 +
margin
Me.Label12.Top = TopValue
Me.Rotterdam_CC.Top = TopValue
End If
I have two questions regarding this problem:
1. For some reason the value of 0.61 is not added to 'TopValue',
therefore Label12 is shown on top of Label10. Are calculations not
possible in VBA in reports?
2. Is this the way to go, or is there a much easier manner of creating
a properly formatted report?
TIA,
Remco