all groups > dotnet xml > august 2006 >
You're in the

dotnet xml

group:

Geeting devide by zero error


Geeting devide by zero error Vishnu Kumar Tiwari
8/2/2006 6:36:01 PM
dotnet xml:
Hi

After getting the data from the database to the dataset I am calculating one
more field which involves devision.

Do I need to check ISNULL for TOTFLRAREASQFTNBR when putting this in the
denominator.
Since I already have put a check condition so do I need put one more while
putting the same in the denominator.
I am using below expression for the clculation of the field

IIF(ISNULL(TOTFLRAREASQFTNBR, 0) > 0, ISNULL(BLDG_VAL_AMT, 0) /
TOTFLRAREASQFTNBR" +
", NULL)";


--
RE: Geeting devide by zero error v-kevy NO[at]SPAM online.microsoft.com
8/3/2006 12:00:00 AM
Hi Vishnu,

This depends on how the expression is evaluated.

If the conditional expression is false, the true expression will not be
evaluated. So you don't need to use ISNULL to evaludate it again.

Kevin Yu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
AddThis Social Bookmark Button