Null

How can i make a "nul" value to number "0"
here's my code
!QUANTITY = !QUANTITY + QTY
it will become error once !Quantity is null. I need to convert null to "0"
Thanks!
Whing Dela CruzAsked:
Who is Participating?
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
or:

   !QUANTITY = iif(IsNull(!QUANTITY), 0, !QUANTITY) + QTY

Open in new window

0
 
Éric MoreauSenior .Net ConsultantCommented:
something like this:
if IsNull(!QUANTITY) then
   !QUANTITY = QTY
else
   !QUANTITY = !QUANTITY + QTY
endif

Open in new window

0
 
Whing Dela CruzAuthor Commented:
Thank you sir!
0
All Courses

From novice to tech pro — start learning today.