dim cn as new adodb.connection
dim i as long
cn.ConnectionString = "PROVIDER=MSDASQL;DRIVER={Microsoft Visual Foxpro Driver};SourceDB=" & App.Path + "\;SourceType=dbf" '当前目录自由表
cn.open
cn.Execute "create table text(col char(10))"
for i=0 to 100
cn.Execute "insert into text values('row' & i)"
next
cn.Execute "delete from test"
cn.close
你自己测试吧。