代码
SqlStr = "insert into log ......
Adodc1.RecordSource = SqlStr
Debug.Print Adodc1.RecordSource
Adodc1.Refresh
运行到Adodc1.Refresh,弹出提示:对象关闭时,操作不被允许
但记录插入成功
这是什么原因啊
SqlStr = "insert into log ......
Adodc1.RecordSource = SqlStr
Debug.Print Adodc1.RecordSource
Adodc1.Refresh
运行到Adodc1.Refresh,弹出提示:对象关闭时,操作不被允许
但记录插入成功
这是什么原因啊
Adodc1.recordset.open SqlStr?
加在Adodc1.Refresh之前?
还是不行
一条插入的sql语句是不会返回记录集的