P prabhu Registered User. Local time Today, 05:26 Joined Apr 21, 2010 Messages 54 Oct 28, 2010 #1 Hello, When there is no data in the query result, How to give a default value like ZERO Thanks, Prabhu
Hello, When there is no data in the query result, How to give a default value like ZERO Thanks, Prabhu
DCrake Remembered Local time Today, 04:26 Joined Jun 8, 2005 Messages 8,626 Oct 28, 2010 #2 Wrap Nz([YourNumericField],0) around the field
P prabhu Registered User. Local time Today, 05:26 Joined Apr 21, 2010 Messages 54 Oct 28, 2010 #3 Thanks David, But do i need to enter in VB module? I am new to access and i manage access with Query only. Is it possible to get it with query. I tried entering this in Query field and but i didnt get the result. Last edited: Oct 28, 2010
Thanks David, But do i need to enter in VB module? I am new to access and i manage access with Query only. Is it possible to get it with query. I tried entering this in Query field and but i didnt get the result.
dz2k7 Not only User Local time Yesterday, 20:26 Joined Apr 19, 2007 Messages 104 Oct 28, 2010 #4 How about this? Put in a query Result: iif([something] is not Null,[something],0)
John Big Booty AWF VIP Local time Today, 13:26 Joined Aug 29, 2005 Messages 8,262 Oct 31, 2010 #5 dz2k7 said: How about this? Put in a query Result: iif([something] is not Null,[something],0) Click to expand... That is essentially the NZ() function, as previously suggested by DCrake, recreated using an Iif statement.
dz2k7 said: How about this? Put in a query Result: iif([something] is not Null,[something],0) Click to expand... That is essentially the NZ() function, as previously suggested by DCrake, recreated using an Iif statement.
P prabhu Registered User. Local time Today, 05:26 Joined Apr 21, 2010 Messages 54 Nov 2, 2010 #6 Thank you John, It worked for me.
John Big Booty AWF VIP Local time Today, 13:26 Joined Aug 29, 2005 Messages 8,262 Nov 2, 2010 #7 Glad you got it working