Imports System.Data.OleDb
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a As New OleDbConnection("provider=microsoft.jet.oledb.4.0;data sourse=" & Application.StartupPath & "\d:\1\nba.mdb")
a.Open()
Dim b As New OleDbCommand("select * from cba", a)
Label1.Text = b.ExecuteScalar.ToString()
a.Close()
End Sub
End Class
我创建的access数据库放在d:\1\nba.mdb
运行后会显示:找不到可安装的 ISAM。
请问错在哪,帮忙改一下,谢谢