|
-
Jan 15th, 2009, 09:59 AM
#1
Thread Starter
Addicted Member
Installable ISAM
The short code here produces an error 'Could not find intallable ISAM' - and I'm not sure what this means or why there's an error.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim connString As String
Dim mdbPath As String
Dim cn As OleDb.OleDbConnection
Try
mdbPath = "C:\Test\Test.mdb"
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Test\Test.xls;Extended Properties= Excel 8.0;HDR=Yes;IMEX=1"
connString = String.Format(connString, mdbPath)
cn = New OleDb.OleDbConnection(connString)
cn.Open()
MessageBox.Show("Connection opened")
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|