473,473 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Need help for msdata expression = "IIF

I am using below expression in xsd...
I am getting devide by zero error.

For ur information I am filling the dataset with the results obtained from
Stored procedure.
Now again I need to calculate one field which is the divison of two fields
returned from SP.
Please notice that the third field is not available in the database. We need
to calculate inside xsd using the two fields returned from SP.
Please help

<xs:element name="CALC_BLDG_SBMT_PER_SQFT_AMT" type="xs:decimal"
msdata:Expression="IIF((IsNULL(TOTFLRAREASQFTNBR, 0) 0),
(IsNULL(BLDG_VAL_AMT, 0) / TOTFLRAREASQFTNBR ),NULL)" minOccurs="0" />
--
Vishnu
Aug 3 '06 #1
1 2031
Hi Vishnu,

I tried the expression on my machine. However, I tried divisor and dividend
columns with NULL and 0 values, none of the cases gives devide by 0
exception. Could you check which value in the returned rows gives this
error? Also, are there any other calculated rows in the table?

Kevin Yu
Microsoft Online Community Support
==================================================

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

Aug 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: mark | last post by:
Access 2000: I creating a report that has a record source built by the user who selects the WHERE values. An example is: SELECT * FROM CHARGELOG WHERE STDATE Between #10/27/2003# And...
4
newnewbie
by: newnewbie | last post by:
I have a query where I need Access to evaluate the "Name" field and return messages "Batch" or "Desktop". The "Name" field contains unique values like ...
18
by: njgreen2001 | last post by:
I thought the length of this might give me problems. Any suggestions on how to shorten it? Expression: =IIf(="A Pos" And ="A Pos",(DLookUp("","")), IIf(="A Pos" And ="A...
1
by: jmarr02s | last post by:
I am using MS Access 2003 and get the following error "Data type mismatch in criteria expression" Any suggestions on how to fix this? This is my code: SELECT IIf(=15 Or =19, "15 og 19",...
3
by: shark | last post by:
Hi Is it any way to use current column value in Expression for this column. Let say we want to have: DataColumn2.Expression = IIF(DataColumn1 <0, DataColumn1, DataColumn2) Its'n valid but how...
9
by: Desyree | last post by:
I am putting together a database with the fields: 1. Number of Projects 2. Project (Name) 3. Project Contact 4. Company 5. Location (City, State) 6. Last Contact Date 7. Mw/g 8. Project Type
4
by: ebasshead | last post by:
Hi Everybody, I want to be able to put a number in a txt box and if its between 5 and 9, for it to appear as a count in another txt box ie if the number inputed is 7 then 1 will appear in the second...
1
by: Chesne | last post by:
I am trying to return several value in and IF in a query statement. The generic is as follows... =IIf(!!=10,Between 1 and 10,"") Can anyone help with the "Between" part. I realise that it...
2
by: salserita | last post by:
Hi, I'm trying to do the following query: SELECT .nbr_cusip, Sum(.SumOfamt_trd_fee) AS SumOfSumOfamt_trd_fee, Sum((IIf(="I",,"0"))) AS , Sum((IIf(=2001,,"0"))) AS Year_Par,...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.