Solved

ODBC call failed - ODBC with Unidata

Posted on 2004-10-02
3
629 Views
Last Modified: 2010-08-05

I am using MS Access and ODBC to Unidata but when I run a parameter query it gives me the following error: ODBC call failed. If I hard code the parameters on the query criteria it runs ok,  but if I get interaction with the user it gives me the error.
If I am using the date criteria  :
 Between #9/1/04# and #9/30/04#
If works fine, but if I use the parameters in the query criteria:
 Between [Start Date:] And [End Date:]
Then I get the error: ODBC call failed
Please help.

My plan B is to try to configure Pervasive SQL Server v8.0 with ODBC conenction to Unidata.
Pervasive SQL Server will be in one server and Unidata is on another one. And also to be able to create SQL link databases to Unidata ODBC or import in automated mode from Unidata to SQL-Pervasive in daily basics.
 
0
Comment
Question by:JCB01
3 Comments
 
LVL 15

Accepted Solution

by:
jdlambert1 earned 250 total points
ID: 12209480
I suggest building the SQL in a string variable, then passing that value. That way you can use the user input, but avoid the [Start/End Date:]'s.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now