Quantcast
Viewing all articles
Browse latest Browse all 27206

Excel 32bit vs windows 64bit

Hi,

This is a question that has still taken me one week and no solution.. Please help me..

- Ok on my old laptop had Excel 2003 (32 Bit) and windows (32 bit) - My application worked very OK when using the connection string ;

Code:

    MyConnection = New System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; " & _
                                "data source='" & PrmPathExcelFile & " '; " & "Extended Properties=Excel 8.0;")

- Now, a new laptop was issued to me and it has Excel 2010 (32 bit) and windows (64 bit). I downloaded the Access database engine at

http://www.microsoft.com/en-gb/downl....aspx?id=13255

and changed the connection string to;

Code:

        MyConnection = New System.Data.OleDb.OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0; " & _
                                                                "data source='" & PrmPathExcelFile & " '; " & "Extended Properties=Excel 12.0; HDR=Yes;")

The problem is it DOESN'T READ THE EXCEL 2010 document to import to the form.

Please help me..

Thank you

Viewing all articles
Browse latest Browse all 27206

Trending Articles