By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,426 Members | 2,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,426 IT Pros & Developers. It's quick & easy.

Got nothing after calculation

P: 35



Hi friends!

Please quick reply required.
I have set my formula in a query for the fields mentioned in attachment as

Expand|Select|Wrap|Line Numbers
  1. Balance: [Receipt]+[Return]+[Previous]-[Sale]
As you can see I have some fields as blank, thus my balance is not calculated. Please help
Attached Images
File Type: jpg Untitled.jpg (136.5 KB, 17 views)
Sep 30 '18 #1

✓ answered by twinnyfo

You can use the Nz() function to return 0 for fields that are Null:

Expand|Select|Wrap|Line Numbers
  1. Balance: Nz([Receipt], 0) + Nz([Retrun], 0) + Nz([Previous], 0) - Nz([Sale], 0)
Hope this hepps!

Share this Question
Share on Google+
2 Replies


twinnyfo
Expert Mod 2.5K+
P: 3,284
You can use the Nz() function to return 0 for fields that are Null:

Expand|Select|Wrap|Line Numbers
  1. Balance: Nz([Receipt], 0) + Nz([Retrun], 0) + Nz([Previous], 0) - Nz([Sale], 0)
Hope this hepps!
Sep 30 '18 #2

P: 35
Thanks Twinnyfo its working
Oct 1 '18 #3

Post your reply

Sign in to post your reply or Sign up for a free account.