Solved

Some date fields are wrongly read as null from excel spreadsheet using Microsoft.Jet.OLEDB.4.0

Posted on 2008-06-11
4
278 Views
Last Modified: 2010-04-18
       Dim ConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""

        Dim sqlStatement As String = "SELECT * FROM [" + ExcelFileName + "]"
        Dim con As New OleDbConnection
        Try


            dap = New OleDbDataAdapter( _
                      sqlStatement, _
                        con)
            dst = New DataSet()
            dap.Fill(dst)
Some date fileds are filled as null even though they have valid dates,  Is it something to do with date format vs. numeric format?

How to fix it?
0
Comment
Question by:akulas
[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
4 Comments
 
LVL 22

Accepted Solution

by:
Paka earned 500 total points
ID: 21762804
To troubleshoot this one, you'll need to comment out your exception handing to see how the nulls are being populated.  Do you have more code to view?
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
heat agent push through GPO 2 76
Independent domain networks for setup 6 123
How to set IPSec under Server 2008 R2 and Server 2012 R2 3 60
Drive mapping problem 7 47
Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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