Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 3rd, 2006, 02:35 AM
Vishnu Kumar Tiwari
Guest
 
Posts: n/a
Default Geeting devide by zero error

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)";


--
Vishnu
  #2  
Old August 3rd, 2006, 07:35 AM
Kevin Yu [MSFT]
Guest
 
Posts: n/a
Default RE: Geeting devide by zero error

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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles