I have following query written in my Access DB.
SELECT PriceVale
FROM tblTrans
WHERE ItemID = 1001
My problem is I want this query to return 0 if record is not found in the table. Apparently it returns empty field.
I tried using Nz functions as follows, but still it doesn't return 0
SELECT Nz(PriceVale,0)
FROM tblTrans
WHERE ItemID = 1001
Please help. Thanks
SELECT PriceVale
FROM tblTrans
WHERE ItemID = 1001
My problem is I want this query to return 0 if record is not found in the table. Apparently it returns empty field.
I tried using Nz functions as follows, but still it doesn't return 0
SELECT Nz(PriceVale,0)
FROM tblTrans
WHERE ItemID = 1001
Please help. Thanks