2013-12-12 147 views
1

我需要幫助。我編譯我的系統在vb.net找不到可安裝的ISAM

這裏後遇到的錯誤是我的代碼

Dim dtStudentPermit As DataTable 
Dim dtExcelData As DataTable 
Public constring As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\Exam.accdb;Jet System.OleDb.Database Password = graduation" 
Public connect As New OleDbConnection 

Private Sub Identification_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 
    connect.ConnectionString = constring 

    If connect.State = ConnectionState.Closed Then 
     connect.Open() <------< 'Error: Could not find installable ISAM. 
     MsgBox("Connection is Open") 
    Else 
     MsgBox("Connection is Closed") 

    End If 
End Sub 
+0

您是否安裝了[Microsoft Access數據庫引擎](http://www.microsoft.com/zh-CN/download/details.aspx?id=13255)? (A.K.A. ADE) – Steve

回答

相關問題