sql - Trying to show zero instyead of #Error in visual studio -
in visual studio want state if calculation box blank due there being no figures available on particluar project, show zero.
my calculation simple:
=(reportitems!textbox21.value) / (reportitems!textbox19.value)
for wrote iif statement:
=iif( isnothing(reportitems!textbox21.value) or isnothing(reportitems!textbox19.value), 0, ((reportitems!textbox21.value)/(reportitems!textbox19.value)))
but still shows #error if there blank in either of textbox 21 or 19. see below picture.
can advise on how fix this?
can try use isnumeric instead of isnothing,
=iif(isnumeric(reportitems!textbox21.value) , isnumeric(reportitems!textbox19.value),((reportitems!textbox21.value)/(reportitems!textbox19.value)), 0)
Comments
Post a Comment