I have a Microsoft Access database query that I'm trying to import into a Visual Studio 2005 dataset.
When the query is formed using an NZ() function like this:
SELECT NZ(tblComponentSpecs.nPurchaseCostQuantity, 0) AS Quantity
FROM tblComponentSpecs;
it appears under the Functions list in the Data Connection.
However, when the query is formed using an IIF() function like this:
SELECT IIF(tblComponentSpecs.nPurchaseCostQuantity Is Null, 0, nPurchaseCostQuantity) AS Quantity
FROM tblComponentSpecs;
it appears under the Views list.
Can anyone please explain why?