hi!
the problem is as under..
s="select * from emp"
rs=new adodb.recordset
rs.open s,Conn, adOpenForwardOnly, adLockReadOnly
If rs.BOF = False Or rs.EOF = False Then
For k = 1 To rs.RecordCount
foo
foo
next k
issue: tho the query returns 1 or more than 1 records,
rs.recordCount is returning -1 !!
in rdo i used to make use of .rowCount...in ado,it doesnt
seem to work.
why am i getting -1?
any alaternatives?
thnx,
bluebyte
the problem is as under..
s="select * from emp"
rs=new adodb.recordset
rs.open s,Conn, adOpenForwardOnly, adLockReadOnly
If rs.BOF = False Or rs.EOF = False Then
For k = 1 To rs.RecordCount
foo
foo
next k
issue: tho the query returns 1 or more than 1 records,
rs.recordCount is returning -1 !!
in rdo i used to make use of .rowCount...in ado,it doesnt
seem to work.
why am i getting -1?
any alaternatives?
thnx,
bluebyte