Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[ODBC Microsoft Access Driver] Error

Status
Not open for further replies.

CopperWire

Technical User
Jun 25, 2003
47
US
I'm able to run a query in Access successfully but I get a driver error when I try to access the query in Excel. I'm trying to use the query to create a pivot table in Excel?

The error message is "[Microsoft] [ODBC Microsoft Access Driver] Invalid value for cast specification on column XX."

Any ideas?
 
Any chance you could post the SQL code you try to execute via ODBC ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
It seems to be a data problem. We were able to get around the error by doing the following.

We created a make table from the query. Then we converted the data type of the problem column to text and back to a number. Then it works.

I don't know why this happens, but it does frequently. What a pain!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top