Access Query fields addition and subtraction

mohamednoori

New Member
Joined
Aug 2, 2015
Messages
7
Hi,

i have set up access query to add and subtract calculated fields below

NetBalIQD: [IQDOB]-[IQDMovesOUT]+[IQDMovesIN]+[exIQDIN]-[EXIQDOut]

I used function dsum so I can apply some conditions , everything works well except that I didn't get result until all fields have values [IQDOB]-[IQDMovesOUT]+[IQDMovesIN]+[exIQDIN]-[EXIQDOut] , I am new access so is what is wrong here that prevents [netBalIQD] get result but only there is values for all fields.


thank you in advance


Regards,
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
If a field is null , then any math will result in null, so....
convert all fields using NZ to convert null to zero:

NZ([IQDOB])-NZ([IQDMovesOUT])+NZ([IQDMovesIN])+NZ([exIQDIN])-NZ([EXIQDOut])
 
Upvote 0
If a field is null , then any math will result in null, so....
convert all fields using NZ to convert null to zero:

NZ([IQDOB])-NZ([IQDMovesOUT])+NZ([IQDMovesIN])+NZ([exIQDIN])-NZ([EXIQDOut])

Thank you very much for help , you are awesome, the NZ function was what is needed to convert null to Zero.

befor I use the NZ function , whenever I click the query it crash access and exit I think this will solve this problem too .

Again thank you for help
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top