PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?Um9i?=
Guest
Posts: n/a
 
      12th Mar 2004
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
 
Reply With Quote
 
 
 
 
Brian Camire
Guest
Posts: n/a
 
      12th Mar 2004
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" <(E-Mail Removed)> wrote in message
news:F0EFB2A3-669A-4D8C-8D06-(E-Mail Removed)...
> 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??
>
> Thanks
> Rob



 
Reply With Quote
 
=?Utf-8?B?Um9i?=
Guest
Posts: n/a
 
      12th Mar 2004
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" <(E-Mail Removed)> wrote in messag
news:F0EFB2A3-669A-4D8C-8D06-(E-Mail Removed)..
> I do a query on a crosstab in order to get my information in the format

need it
>> My initial problem was that the crosstab returned null values, and m

query therefore returned null values as results to my arithmeti
calculations. I fixed this using the nz() function
>> Now my problem is that when I try to refresh the ODBC query I have int

excel I get a message telling me that the access ODBC driver doesn't lik
the nz function
>> Am I maybe going about this the wrong way?
>> Thank

> Ro




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
update query avoiding null values =?Utf-8?B?RW1tZXR0IEwu?= Microsoft Access Queries 2 13th Jul 2007 04:02 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xffc Thread 0x228 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer Microsoft ASP .NET 0 30th Mar 2006 04:16 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer Microsoft ASP .NET 0 24th Mar 2006 02:22 PM
Avoiding Null values and using 0 instead Frank M. Microsoft Access Queries 2 14th Dec 2003 11:44 PM
avoiding Null Values in dataset.table and set them to empty string or 0 Anton Sommer Microsoft ADO .NET 5 27th Aug 2003 12:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:09 PM.