提示如下错误:“外部表不是预期的格式“
现在我在我的d:/source_dbf 文件夹下建有如下文件:
data1.dbc,data1.dct,data1.dcx,table1.dbf
程序连接代码如下:
Dim conn As OleDb.OleDbConnection
conn = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=dBASE 5.0;Password=;User ID=;Data Source=d:\source_dbf")
conn.Open()
Dim cmd As New OleDb.OleDbCommand
With cmd
.CommandText = "select * from table1"
.Connection = conn
End With
Dim dr As OleDb.OleDbDataReader
dr = cmd.ExecuteReader()
DataGrid1.DataSource = dr
DataGrid1.DataBind()
我自己找了很久也无法解决,希望大家能帮我下!谢谢了!
1 个解决方案
#1
装了oledb for vfp补丁没?
#1
装了oledb for vfp补丁没?