Guest_imported
New member
- Jan 1, 1970
- 0
If I do
Dim rsDoc as NEW ADODB.Recordset
str = "SELECT * FROM Mytable WHERE ID = '" & varID & "' ORDER BY ID"
With rsDoc
.Open str, cn, adOpenStatic, adLockReadOnly, adCmdText
msgbox(.RecordCount)
End With
I get a recordcount=1 when there are NO RECORDS on the record!!! Why does this happen? I should get a zero record count!
Dim rsDoc as NEW ADODB.Recordset
str = "SELECT * FROM Mytable WHERE ID = '" & varID & "' ORDER BY ID"
With rsDoc
.Open str, cn, adOpenStatic, adLockReadOnly, adCmdText
msgbox(.RecordCount)
End With
I get a recordcount=1 when there are NO RECORDS on the record!!! Why does this happen? I should get a zero record count!