Well, this is not quite how it really works.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
Nz(Value,[ValueIfNull]) is designed for VBA. <o
></o
>
When used in de query builder in Access you need to set the ValueIfNull value, in VBA this is optional. <o
></o
>
<o
> </o
>
The NZ function can be used within VBA code, but as it comes with the MS Access Object Library you need to set a reference to this library.<o
></o
>
<o
> </o
>
At first, it will evaluate if a value is null, if it is it returns a vbNullstring. Or it replaces the null value for the desired value. If the value is NOT null it does nothing. <o
></o
>
<o
> </o
>
When you use <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com
ffice:smarttags" /><st1:City w:st="on"><st1
lace w:st="on">ADO</st1
lace></st1:City> to retrieve or write data Excel, you can still use NZ, depending on how you push or pull the data.<o
></o
>
If you want a demonstration, I’d be happy to publish some code to show how to do this.<o
></o
>
<o
> </o
>
The big advantage is that you don’t need a separate update statement to eliminate null values in a dataset.<o
></o
>