Hi,
I'm trying to hide a few of labels when printing if the label caption/text is "Y/N". Below is the code I'm using:
Code:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If lbl_Slave1 = "Y/N" Then
Me.lbl_Slave1.Visible = False
Else
Me.lbl_Slave1.Visible = True
End If
End Sub
But obviously this is not working. Any ideas where I'm going wrong or how to best do this?
Thanks!