???一段访问DBF库的代码,出现了运行出现外表不是预期的格式的提示,如何处理???
table_name = ListBox1.List(ListBox1.ListIndex)
DataGird1.Caption = table_name
provider = "provider = microsoft.jet.oledb.4.0"
datasource = "data source= " & App.Path + "\;Extended properties=dBase 5.0"
Adodc1.ConnectionString = provider & ";" & datasource
Adodc1.CommandType = adCmdTable
Adodc1.RecordSource = table_name 'dbf文件名
Set DataGrid1.datasource = Adodc1
Adodc1.Refresh
多谢 zsgzsgzsg(zsg),但是改完后。运行出现外表不是预期的
格式提示,我用的是VFro6.0建立库