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.

enter image description here

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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -