简单问题,解决后给分 vb中如何建立一个dbf表文件,并同时建立几个中文字段,最好给个小例子 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Private Sub CreateDbf() 'mpath为dbf文件路径,UDbfName表名,str1字段字符串 Dim DbfCn as new ADODB.Connection Dim strCnn as String strCnn = "Provider=VFPOLEDB.1;Data Source=" & mpath & ";Collating Sequence=MACHINE ;Mode=Share Deny Write" DbfCn .Execute "create table " & UDbfName & ".dbf (" & str1 & ")"End Sub 漏了一句Private Sub CreateDbf() 'mpath为dbf文件路径,UDbfName表名,str1字段字符串 Dim DbfCn as new ADODB.Connection Dim strCnn as String strCnn = "Provider=VFPOLEDB.1;Data Source=" & mpath & ";Collating Sequence=MACHINE ;Mode=Share Deny Write" DbfCn .Open strCnn DbfCn .Execute "create table " & UDbfName & ".dbf (" & str1 & ")"End Sub 在 Access 数据库上建立一个连接对象 cncn.Execute "SELECT '' AS 字符字段1, 0 AS 数字字段2, ... INTO 表名 IN ""C:\DBASE\DATA\SALES"" ""dBASE IV;"" FROM [任意一个Access表名]" Private Sub CreateDbf() 'mpath为dbf文件路径,UDbfName表名,str1字段字符串 Dim DbfCn as new ADODB.Connection Dim strCnn as String strCnn = "Provider=VFPOLEDB.1;Data Source=" & mpath & ";Collating Sequence=MACHINE ;Mode=Share Deny Write" DbfCn .Open strCnn DbfCn .Execute "create table " & UDbfName & ".dbf (" & str1 & ")"End Sub 没有dbf文件,联接可以吗? 恭喜!今天老马大婚! 关于MS ActiveX Data Objects Library的版本问题 送分100分:串口数据发送和接收中的问题 紧急求助!下面的vb代码哪里不正确 Active Reports 不显示空格 哪位大侠有crystal enterprise的sn 如何获取公网IP(这个问题问了好多人怎么大家都不知道?) ADO执行SQL查询问题(查询对象为SQL Server数据库表) 下面的api在vb中怎么写 请教vb中日期格式问题: 关于bookmark的问题 VB容器中控件的动态添加和删除
Dim DbfCn as new ADODB.Connection
Dim strCnn as String
strCnn = "Provider=VFPOLEDB.1;Data Source=" & mpath & ";Collating Sequence=MACHINE ;Mode=Share Deny Write"
DbfCn .Execute "create table " & UDbfName & ".dbf (" & str1 & ")"
End Sub
Private Sub CreateDbf() 'mpath为dbf文件路径,UDbfName表名,str1字段字符串
Dim DbfCn as new ADODB.Connection
Dim strCnn as String
strCnn = "Provider=VFPOLEDB.1;Data Source=" & mpath & ";Collating Sequence=MACHINE ;Mode=Share Deny Write"
DbfCn .Open strCnn
DbfCn .Execute "create table " & UDbfName & ".dbf (" & str1 & ")"
End Sub
Dim DbfCn as new ADODB.Connection
Dim strCnn as String
strCnn = "Provider=VFPOLEDB.1;Data Source=" & mpath & ";Collating Sequence=MACHINE ;Mode=Share Deny Write"
DbfCn .Open strCnn
DbfCn .Execute "create table " & UDbfName & ".dbf (" & str1 & ")"
End Sub