Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: Linking Excel to SQL Tables - Types Not Compatible Post Reply Post New Topic
Author Message
RompinRonny
Newbie
Newbie
Avatar

Joined: 26 Mar 2008
Location: Canada
Online Status: Offline
Posts: 8
Quote RompinRonny Replybullet Topic: Linking Excel to SQL Tables - Types Not Compatible
    Posted: 22 Jul 2008 at 12:11pm
Hello All,
 
I am trying to run a CR XI report using an Excel 2003 spreadsheet for data selection in several SQL tables.  When I try to link the column CTN in the spreadsheet to an SQL table field called IN_NUM, I get the "Data types are not compatible" error message (field IN_NUM is numeric).  I have reformatted the column to be numeric, but it still won't work - CR sees the column as a string rather than numeric.  Yet other columns in the spreadsheet, formatted as "General" in Excel, are shown as numeric in CR??

Does anyone have any suggestions on how to fix this?  I had this working a while ago, but it seemed to be hit and miss - it would work sometimes, and not work other times.

Any suggestions are much appreciated.
Regards,
Rompinronny
In the beginning, the Universe was created. This made a lot of people angry, and has been widely regarded as a bad idea.
IP IP Logged
RompinRonny
Newbie
Newbie
Avatar

Joined: 26 Mar 2008
Location: Canada
Online Status: Offline
Posts: 8
Quote RompinRonny Replybullet Posted: 22 Jul 2008 at 1:06pm
Hello again,
 
I found the problem and the solution - even though the cells were formatted as numeric, each cell in the column CTN had a warning in the cell:  "Number stored as text".  I converted all the cells in this column to Number by using the instructions in Excel and now I can link my spreadsheet to the SQL table field.
FYI. 
In the beginning, the Universe was created. This made a lot of people angry, and has been widely regarded as a bad idea.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.035 seconds.