If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Data Type Mismatch in Excel ODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-10, 06:58
hiteshkataria hiteshkataria is offline
Registered User
 
Join Date: Feb 2010
Posts: 22
Data Type Mismatch in Excel ODBC

Hi,

In one of the column of an excel sheet, data contains both numeric & character. When I try to execute SQL using Excel ODBC, I'm getting error message: Data Type Mismatch.

I tried to change the format of that Field as Text, even then I get the same error. The query works fine when I give SQL something with numeric values.
Reply With Quote
  #2 (permalink)  
Old 02-16-10, 08:40
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi

I think this is a mismatch between the data in the spreadsheet and the data type of the corresponding field in the database. This would also cause an error if the data in the spreadsheet column is used as a criteria argument in a query if some are text and some are number and the field is numeric.

Without more info it is impossible to say with any certainty


MTB
Reply With Quote
  #3 (permalink)  
Old 02-18-10, 08:57
hiteshkataria hiteshkataria is offline
Registered User
 
Join Date: Feb 2010
Posts: 22
Yes, the problem is with data in sheet.
Some are text and some are number in one of the column.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On