Hi all,
I guess this question has been asked a lot, but i could not find a right solution.
I would like to know the recordcound of a recordset. So what I do is I open the connection like this (the 1 and 3 should solve the recordcount problem said some solutions):
rs.Open(sql, conn, 1, 3)
Then I have tried a lot of things...
-> rs.movelast
nr = rs.recordcount
-> nr = rs.recordcount (without rs.movelast)
-> if not rs.eof then
nr = rs.recordcount
end if
-> ...
But I always get -1.
Does someone know a solution?
Thanks in advance,
FatEric
I guess this question has been asked a lot, but i could not find a right solution.
I would like to know the recordcound of a recordset. So what I do is I open the connection like this (the 1 and 3 should solve the recordcount problem said some solutions):
rs.Open(sql, conn, 1, 3)
Then I have tried a lot of things...
-> rs.movelast
nr = rs.recordcount
-> nr = rs.recordcount (without rs.movelast)
-> if not rs.eof then
nr = rs.recordcount
end if
-> ...
But I always get -1.
Does someone know a solution?
Thanks in advance,
FatEric