请教 急!
Public conn As ADODB.ConnectionPublic rsbeng As ADODB.Recordset
Public cmd As ADODB.Command
Set conn = New ADODB.Connection
conn.Open "data source=beng;"
Set cmd = New ADODB.Command
Set cmd.ActiveConnection = conn
strsql = "select * from bengbiao"
cmd.CommandText = strsql
cmd.CommandType = adCmdText
Set rsbeng = cmd.Execute
Debug.Print rsbeng.RecordCount
请问 立即窗口为什么总显示-1呢?