N
Nathan Guill
I am having trouble with the .visible property functioning when I edit or
copy this code. In the original code I created, it works with no problems.
Can anyone help?
The code below is processed in the when the report is formatted before
printing. The ("D" & iCount) fields on the report are textboxes. I run
Acess 2000. I change the visibility as I don't want any empty lines to
print and I eventually (later on in the code) move then fields that come
after these to move up to the last visible field. Any onther information
needed, please let me know.
For iCount = 1 To 24
If Me("D" & iCount).Value > "" Then
'show dimension
Me("D" & iCount).Visible = True
'show label
Me("lbl" & iCount).Visible = True
'show lines
Me("l" & iCount).Visible = True
Me("l" & (iCount + 25)).Visible = True
Me("l" & (iCount + 50)).Visible = True
'Save current Top & Height
mvarLastLabelTop = Me("lbl" & iCount).Top
Else
'hide dimension
Me("D" & iCount).Visible = False
'hide label
Me("lbl" & iCount).Visible = False
'hide lines
Me("l" & iCount).Visible = False
Me("l" & (iCount + 25)).Visible = False
Me("l" & (iCount + 50)).Visible = False
End If
Next iCount
copy this code. In the original code I created, it works with no problems.
Can anyone help?
The code below is processed in the when the report is formatted before
printing. The ("D" & iCount) fields on the report are textboxes. I run
Acess 2000. I change the visibility as I don't want any empty lines to
print and I eventually (later on in the code) move then fields that come
after these to move up to the last visible field. Any onther information
needed, please let me know.
For iCount = 1 To 24
If Me("D" & iCount).Value > "" Then
'show dimension
Me("D" & iCount).Visible = True
'show label
Me("lbl" & iCount).Visible = True
'show lines
Me("l" & iCount).Visible = True
Me("l" & (iCount + 25)).Visible = True
Me("l" & (iCount + 50)).Visible = True
'Save current Top & Height
mvarLastLabelTop = Me("lbl" & iCount).Top
Else
'hide dimension
Me("D" & iCount).Visible = False
'hide label
Me("lbl" & iCount).Visible = False
'hide lines
Me("l" & iCount).Visible = False
Me("l" & (iCount + 25)).Visible = False
Me("l" & (iCount + 50)).Visible = False
End If
Next iCount