查看: 1572|回复: 2
|
什么软件可打开和更改.DBF的Database档案的??
[复制链接]
|
|
什么软件可打开和更改.DBF的Database档案的??
我用Visual Basic 6.0尝试打开我的DBF档案。。
我成功连接了,不过就是不能增加新的Column。。。
Dim foldername As String
foldername = "C:\Documents and Settings\Programmer\Desktop\Data"
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & foldername & ";Extended Properties=dBase IV;"
Conn.Execute ("ALTER TABLE User ADD TotalAccess char(255)")
Run-time error...
Operation not supported on the table that contains data. <<<-------------错误出现~~~ |
|
|
|
|
|
|
|
发表于 17-7-2009 08:54 PM
|
显示全部楼层
回复 1# 十全十美的靓仔 的帖子
ado 只支援 dml, 你的 alter table 是 ddl
要執行 ddl 需要 adox 組件
cat.ActiveConnection = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\Documents and Settings\Programmer\Desktop\Data;" & _
"Extended Properties=dBase III;"
Dim tbl As New ADOX.Table
Dim cat As New ADOX.Catalog
tbl.NAME = "User"
tbl.Columns.Append "TotalAccess", adVarWChar, 255
cat.Tables.Append tbl |
|
|
|
|
|
|
|
发表于 26-7-2009 02:50 PM
|
显示全部楼层
install the VFP , 可以export 去, 很多不同的檔 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|