L
Louie Warren
I have a report based on a query. I have some conditional
processing that changes the color of the text based on the
value of a field. When there is at least one row
retrieved, it works fine. However, when there are no rows
retrieved, instead of just printing the header with no
rows, I get the "Run-Time error 2427 You entered an
expression that has no value." message. I've tried
entering the If the field is not null perform the
processing, but with no luck.
Code:
If ReportField = "This" or ReportField = "That" Then
Label3.Forecolor = QBColor(5)
Else
Label3.Forecolor = QBColor(0)
End If
I want to code "If no results returned, then print header,
else do the above code."
Any ideas? Thanx.
processing that changes the color of the text based on the
value of a field. When there is at least one row
retrieved, it works fine. However, when there are no rows
retrieved, instead of just printing the header with no
rows, I get the "Run-Time error 2427 You entered an
expression that has no value." message. I've tried
entering the If the field is not null perform the
processing, but with no luck.
Code:
If ReportField = "This" or ReportField = "That" Then
Label3.Forecolor = QBColor(5)
Else
Label3.Forecolor = QBColor(0)
End If
I want to code "If no results returned, then print header,
else do the above code."
Any ideas? Thanx.