Public Function Execute(ByVal strCmd As String, ByRef rec As ADODB.Recordset)
Public Function Execute(ByVal strCmd As String, ByRef rec As ADODB.Recordset, Optional ByRef nRecords As Long = -1) As Boolean
On Error GoTo ErrorHandler
If nRecords <> -1 Then
rec = Cnn.Execute(strCmd, nRecords)
Else
rec = Cnn.Execute(strCmd)
End If
Execute = True
Exit Function
谁能解释下这个函数的意思啊,拜托了。
数据连接cnn执行SQL语句 strCmd
让数据库执行某个SQL命令
打开数据集,调用的时候没有写rs那个参数吧