Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I try to count record number in a recordset. I open my connection with cursor type 1 and lock type 3:
Set conn = Server.CreateObject("ADODB.Connection"
Conn.Open "DSN=name", 1,3
And I use the RecordCount method:
count = rs.RecordCount
But I always get -1 for the count.
Can anyone figure out the problem for me?
Thank you.
I try to count record number in a recordset. I open my connection with cursor type 1 and lock type 3:
Set conn = Server.CreateObject("ADODB.Connection"
Conn.Open "DSN=name", 1,3
And I use the RecordCount method:
count = rs.RecordCount
But I always get -1 for the count.
Can anyone figure out the problem for me?
Thank you.