In the Detail section of my report I have a Text Box (Text66) which is linked to a Check Box (fInd). I have the following code in the control source of the text box:
This works fine but I need this Text Box to show nothing if another Text Box ([TxtName]) is blank.
I tried using the following expression in the On Open Event of the Report but each time I run it, I get the warning "You entered an expression that has no value"
Could someone please advise where I am going wrong.
Thanks a lot
John
Code:
=IIf([fInd]=True,"IND","TEAM")
This works fine but I need this Text Box to show nothing if another Text Box ([TxtName]) is blank.
I tried using the following expression in the On Open Event of the Report but each time I run it, I get the warning "You entered an expression that has no value"
Code:
Private Sub Report_Open(Cancel As Integer)
Dim varResult As Variant
varResult = IIf(Nz([TxtName]) = "", Controls("Text66").Visible = False, Controls("Text66").Visible = True)
End Sub
Could someone please advise where I am going wrong.
Thanks a lot
John