473,385 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

NZ Function Not Support via ODBC

MX1
Help. I have a complex Access database that I've tied into using ASP.
Things work great, except I can't seem to have queries that originate in ASP
use the NZ function. Need it in case there are nulls. It would be a
nightmare to rewrite the queries. Anyone know of an alternate way to
connect to the database so my NZ calcs would be supported?

Many thanks!
Nov 13 '05 #1
4 2998
This will not work no matter how you connect.

The Nz function works in queries within Access because the expression
service intercepts it and makes the call to the function.

Using ODBC/ADO/RDO the Access expression service is out of the picture and
so you will get errors.

Have a look at seeing if simply appending an empty string to your
expressions and removing the NZ function sorts your problems out.
--
Terry Kreft
MVP Microsoft Access
"MX1" <mx*@mx1.abc> wrote in message news:2I6Cc.91433$eu.44859@attbi_s02...
Help. I have a complex Access database that I've tied into using ASP.
Things work great, except I can't seem to have queries that originate in ASP use the NZ function. Need it in case there are nulls. It would be a
nightmare to rewrite the queries. Anyone know of an alternate way to
connect to the database so my NZ calcs would be supported?

Many thanks!

Nov 13 '05 #2
MX1
Thanks Terry. What do you mean by appending an emptry string to the
expressions. Not sure I follow you. Can you provide a brief example?
Thanks!
"Terry Kreft" <te*********@mps.co.uk> wrote in message
news:mB********************@karoo.co.uk...
This will not work no matter how you connect.

The Nz function works in queries within Access because the expression
service intercepts it and makes the call to the function.

Using ODBC/ADO/RDO the Access expression service is out of the picture and
so you will get errors.

Have a look at seeing if simply appending an empty string to your
expressions and removing the NZ function sorts your problems out.
--
Terry Kreft
MVP Microsoft Access
"MX1" <mx*@mx1.abc> wrote in message

news:2I6Cc.91433$eu.44859@attbi_s02...
Help. I have a complex Access database that I've tied into using ASP.
Things work great, except I can't seem to have queries that originate in

ASP
use the NZ function. Need it in case there are nulls. It would be a
nightmare to rewrite the queries. Anyone know of an alternate way to
connect to the database so my NZ calcs would be supported?

Many thanks!


Nov 13 '05 #3
Say you had

SELECT NZ([City],"") AS Expr1
FROM Table1;
You could change this to
SELECT [City] & "" AS Expr1
FROM Table1;

--
Terry Kreft
MVP Microsoft Access
"MX1" <mx*@mx1.abc> wrote in message news:OOdCc.92454$eu.30902@attbi_s02...
Thanks Terry. What do you mean by appending an emptry string to the
expressions. Not sure I follow you. Can you provide a brief example?
Thanks!
"Terry Kreft" <te*********@mps.co.uk> wrote in message
news:mB********************@karoo.co.uk...
This will not work no matter how you connect.

The Nz function works in queries within Access because the expression
service intercepts it and makes the call to the function.

Using ODBC/ADO/RDO the Access expression service is out of the picture and
so you will get errors.

Have a look at seeing if simply appending an empty string to your
expressions and removing the NZ function sorts your problems out.
--
Terry Kreft
MVP Microsoft Access
"MX1" <mx*@mx1.abc> wrote in message

news:2I6Cc.91433$eu.44859@attbi_s02... Help. I have a complex Access database that I've tied into using ASP.
Things work great, except I can't seem to have queries that originate
in ASP
use the NZ function. Need it in case there are nulls. It would be a
nightmare to rewrite the queries. Anyone know of an alternate way to
connect to the database so my NZ calcs would be supported?

Many thanks!



Nov 13 '05 #4
MX1
Cool. I'll try that. Thanks.

"Terry Kreft" <te*********@mps.co.uk> wrote in message
news:be********************@karoo.co.uk...
Say you had

SELECT NZ([City],"") AS Expr1
FROM Table1;
You could change this to
SELECT [City] & "" AS Expr1
FROM Table1;

--
Terry Kreft
MVP Microsoft Access
"MX1" <mx*@mx1.abc> wrote in message news:OOdCc.92454$eu.30902@attbi_s02...
Thanks Terry. What do you mean by appending an emptry string to the
expressions. Not sure I follow you. Can you provide a brief example?
Thanks!
"Terry Kreft" <te*********@mps.co.uk> wrote in message
news:mB********************@karoo.co.uk...
This will not work no matter how you connect.

The Nz function works in queries within Access because the expression
service intercepts it and makes the call to the function.

Using ODBC/ADO/RDO the Access expression service is out of the picture and so you will get errors.

Have a look at seeing if simply appending an empty string to your
expressions and removing the NZ function sorts your problems out.
--
Terry Kreft
MVP Microsoft Access
"MX1" <mx*@mx1.abc> wrote in message

news:2I6Cc.91433$eu.44859@attbi_s02...
> Help. I have a complex Access database that I've tied into using ASP. > Things work great, except I can't seem to have queries that originate in
ASP
> use the NZ function. Need it in case there are nulls. It would be

a > nightmare to rewrite the queries. Anyone know of an alternate way to > connect to the database so my NZ calcs would be supported?
>
> Many thanks!
>
>



Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
0
by: Nagendra | last post by:
Hi all, I need to access an Oracle database through a python script using ODBC drivers(currently i have eval copies of Easysoft and datadirect Oracle ODBC drivers). Desired platforms are solaris,...
5
by: adrian zaharia | last post by:
Hello, Is it possible to use Replace function in a query against an excel file? I am trying this test code and gives me an error: Set cnnExcel = Server.CreateObject("ADODB.Connection")...
20
by: Neil | last post by:
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table with 50,000 records; and I have a selections table with 50,000 records for each machine that uses the database (about...
24
by: Benjamin Doyle | last post by:
In Chip Irek's "A PRIMER ON USING DB2 WITH .NET" (www.15seconds.com), he states that "...ODBC doesn't support DB2 stored procedures. So if you are building an application heavily dependant on...
3
by: Bill | last post by:
Hi, I installed PHP 5.0 on my linux box. In php.ini, i added this: extension=odbc.so But i still get the error:"Call to undefined function odbc_connect()" when trying to run this command:...
12
by: Dixie | last post by:
I am trying to calculate the number of workdays between two dates with regards to holidays as well. I have used Arvin Meyer's code on the Access Web, but as I am in Australia and my date format is...
3
by: harsha.patibandla | last post by:
We have a webserver, Apache, hosted on Linux and we use php as the scripting language. Now, I am developing a form which will fill up a Microsoft Access database (on a Windows machine). For this...
0
by: sudhaoncyberworld | last post by:
Dear Techies, I do have small issue on connecting oracle server from .net This is the code snippet public string strConString = "Driver={Microsoft ODBC for...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.