dynamically changing a report label properties

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I wish to change the font property of a label to switch of the
underline under certain conditions. I have the following code

Public Sub HideQuoteTotals(ReportName As Variant)

ReportName![unTreatedLabel].Visible = False
ReportName![unTreatedLabel].left = 7450
'how do I set the underlined property of this control to NO
????????

End Sub

Thanx in advance
Geri x
 
Geraldine said:
I wish to change the font property of a label to switch of the
underline under certain conditions. I have the following code

Public Sub HideQuoteTotals(ReportName As Variant)

ReportName![unTreatedLabel].Visible = False
ReportName![unTreatedLabel].left = 7450
'how do I set the underlined property of this control to NO
????????


Use the FontUnderline property, but, since you made it
invisible, why bother?

I can't tell for sure, but it looks like you're using the
report name as an argument when the code uses it as if it
were a report object??
 
Back
Top