wakeboarder141
New member
- Local time
- Today, 06:26
- Joined
- Jan 4, 2025
- Messages
- 5
I have two text boxes on a report and would like to control which one is visible based on a value in another field. I can accomplish what I want in Print Preview by using VBA:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [TPR_Multplier] > "1" Then
Me.TPR2.Visible = True
Else
Me.TPR2.Visible = False
End If
End Sub
However, this does not affect the Report View. Is it possible to affect the visibility of text boxes in Report View? I have tried using Conditional Formatting to change the text color, but the issue there is that some users copy and paste data from the report and the sneaky white text still gets copied. I would need to have it totally hidden. Thank you.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [TPR_Multplier] > "1" Then
Me.TPR2.Visible = True
Else
Me.TPR2.Visible = False
End If
End Sub
However, this does not affect the Report View. Is it possible to affect the visibility of text boxes in Report View? I have tried using Conditional Formatting to change the text color, but the issue there is that some users copy and paste data from the report and the sneaky white text still gets copied. I would need to have it totally hidden. Thank you.