Avoiding Null Values using nz() won't work with Access ODBC driver

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I do a query on a crosstab in order to get my information in the format I need it

My initial problem was that the crosstab returned null values, and my query therefore returned null values as results to my arithmetic calculations. I fixed this using the nz() function

Now my problem is that when I try to refresh the ODBC query I have into excel I get a message telling me that the access ODBC driver doesn't like the nz function

Am I maybe going about this the wrong way?

Thank
Rob
 
Instead of using something like this:

Nz([Your Field], [Value If Your Field Is Null])

try using something like this:

IIf(IsNull([Your Field]), [Value If Your Field Is Null], [Your Field])

Nz is an Access-specific function that is only "understood" in queries
executed within Access.

Rob said:
I do a query on a crosstab in order to get my information in the format I need it.

My initial problem was that the crosstab returned null values, and my
query therefore returned null values as results to my arithmetic
calculations. I fixed this using the nz() function.
Now my problem is that when I try to refresh the ODBC query I have into
excel I get a message telling me that the access ODBC driver doesn't like
the nz function.
 
That's great thanks
Ro

----- Brian Camire wrote: ----

Instead of using something like this

Nz([Your Field], [Value If Your Field Is Null]

try using something like this

IIf(IsNull([Your Field]), [Value If Your Field Is Null], [Your Field]

Nz is an Access-specific function that is only "understood" in querie
executed within Access

Rob said:
I do a query on a crosstab in order to get my information in the format need it
query therefore returned null values as results to my arithmeti
calculations. I fixed this using the nz() functionexcel I get a message telling me that the access ODBC driver doesn't lik
the nz function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access #Error & Excel Pivot 0
NZ function 1
change null count in crosstab qry to zeros Trouble with Nz 9
Nz 10
Nz function 0
NZ function 1
Nz(null values in queries, 0) 2
NZ 5

Back
Top