Link to home
Start Free TrialLog in
Avatar of LillyC
LillyCFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to force a zero into a blank field via a query in Access 2010

Could anyone advice how I force a zero into a blank field in a query:

I have 2 cost columns and just want to deduct one from the other, so I need to force a zero into one of the columns where is doesn't return a value.
Avatar of Norie
Norie

You can use Nz for that.

Calc:Nz([Field2])-Nz([Field1])
try

expr: Nz([Field2],0)-Nz([Field1],0)
Avatar of LillyC

ASKER

Great... thank you :)
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.