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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,215,350
Messages
6,124,430
Members
449,158
Latest member
burk0007

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