Solved

ODBC call failed - ODBC with Unidata

Posted on 2004-10-02
3
634 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

624 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