用vb上传文件到数据中,只能上传一次不能再点一次就提示出错
--------------------编程问答-------------------- 联接重复打开,当然不行了--------------------编程问答--------------------
if cn.state<>adstateclosed then cn.close
cn.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=saveFile;Data Source=PCOS-05071342"
if rs.state<>adstateclosed then rs.close
rs.Open "select * from TestPpt ", cn, 1, 3
补充:VB , 数据库(包含打印,安装,报表)