#error in bound control

F

Fons Ponsioen

Give the Nz(variant[, valueifnull]) funstion a try.
Hope this helps.
Fons

-----Original Message-----
I have a report based on a query. Some of the query
fields may or may not return a value. The report has
controls bound to these fields and will print #error when
the query field has no value (this I understand). What I
want to do is print "0" if the field has no data, or the
field value otherwise.
I have tried: =iff(report.hasdata,[field name],0) but I
still get #error. I assume this is because the report has
data, but the field does not. So, what I need is a
field.hasdata property?
 
Top