OleDbConnection extended properties

M

m.trimble

I've set up some visual basic .net code to read a spreadsheet. It
works, but not all the time. Sometimes I get an error where the
Microsoft Jet Engine could not access the spreadhsheet tab name, which
has been entered in the application and I know to be correct.

Here's the code:

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

Is there something about the Extended Properties parameter that I can
tweak or make more robust? I've searched this forum but always see
basically this same setup to read Excel.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top