D
Didier Chesto
Since I use Dreamweaver 8, all recordsets are opened by rs_cmd.Execute().
The problem is that rs.RecordCount() doesn't work anymore. I found a number
of solutions that I cannot get to work.
Solution 1. I have to use the forward only cursor but I don't know how to
do that. I do know how to do that with the 'old' rs.Open() way but this way
I cannot have the convenience anymore of dragging columns in my code.
Solution 2. So I tried counting the records by iteration in a loop until
EOF. Works. The only thing is I cannot rewind the recordset anymore:
rs.MoveFirst() doesn't work.
Solution 3. I don't want to create a separate recordset to count via SQL
for reasons of database load.
Solution 4. Getrows(). Sounds interesting because you get out of the
database a.s.a.p. and use the data from an array. But there's my other
handicap: I program in ASP Javascript, not VBScript. I cannot find a good
example of using Getrows() in Javascript.
Funny how you can spend all night on something simple like counting records
and still don't get it to work. If anybody can help me out, my thanks would
reach rabies-like levels.
The problem is that rs.RecordCount() doesn't work anymore. I found a number
of solutions that I cannot get to work.
Solution 1. I have to use the forward only cursor but I don't know how to
do that. I do know how to do that with the 'old' rs.Open() way but this way
I cannot have the convenience anymore of dragging columns in my code.
Solution 2. So I tried counting the records by iteration in a loop until
EOF. Works. The only thing is I cannot rewind the recordset anymore:
rs.MoveFirst() doesn't work.
Solution 3. I don't want to create a separate recordset to count via SQL
for reasons of database load.
Solution 4. Getrows(). Sounds interesting because you get out of the
database a.s.a.p. and use the data from an array. But there's my other
handicap: I program in ASP Javascript, not VBScript. I cannot find a good
example of using Getrows() in Javascript.
Funny how you can spend all night on something simple like counting records
and still don't get it to work. If anybody can help me out, my thanks would
reach rabies-like levels.