How do I use the vb code in a report to change a text box to italic based on what's in the text box I have tried the code below. But it dosen't change the Font to Italics
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me![ToChange] <= -200000 And Me![ccycheck] = "GBP" Then
Me![ToChange].FontItalic = Yes
Else
Me![ToChange].FontItalic = No
End If
End Sub
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me![ToChange] <= -200000 And Me![ccycheck] = "GBP" Then
Me![ToChange].FontItalic = Yes
Else
Me![ToChange].FontItalic = No
End If
End Sub