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 > Data Access, Manipulation & Batch Languages > Delphi, C etc > ADO rs for EXCEL file - Missing numeric data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-17-02, 05:06
sendakil sendakil is offline
Registered User
 
Join Date: Mar 2002
Location: Malaysia
Posts: 18
ADO rs for EXCEL file - Missing numeric data

Hi,

I created a ADO (MDAC2.5) recordset for Ms-excel file using ODBC driver. The file contains columns as follows

A b
------------------------
End Date: 08/07/2001
SI BQ
-27 67
-27 67
-25 25
-18 20
-68 13
-30 13
-27 67
-222 272
-------------------------------

The column A has character type of data "End Date" and "SI" and
Numeri type of data "-27,-27,-25,etc.". What happened when i created
recordset for this file, all numeric type of data missed in that recordset.
please, Anyone can help me what would be the cause and how to solve this.

Thanks in advance

regards
senthil
Reply With Quote
  #2 (permalink)  
Old 05-17-02, 11:05
vududoc vududoc is offline
Registered User
 
Join Date: Jul 2001
Location: NC
Posts: 102
Sendalkil-

The problem is with the Excel ISAM. Unfortunately, it's been a while since I had to deal with this problem, so I can only give you some pointers. Excel ISAM reads the first 8 rows of data (value specified in System Registry) and determines the data type ... but when there are more than two types, it kinda goes crazy, and fills the recordset with nulls.

The answer is in Microsoft's Knowledgebase
Reply With Quote
  #3 (permalink)  
Old 10-06-04, 14:37
Kimba522 Kimba522 is offline
Registered User
 
Join Date: Oct 2004
Posts: 1
Can't find solution in Knowledge Base...

I'm having the same problem that Sendakil described with Excel losing numeric data when retrieving the data via ADO. I can't find any knowledge base articles about this. Does anyone have any tips on resolving this problem?

Thanks in advance.
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On