Hi.
The Recordcount function is not failsafe, just like Marco says.
There are several problems using RecordCount, and I have stopped using it just because you cannot be sure if the result is correct.
I would use if EOF or not EOF to check if I have data.
If I want to get the number of rows, which can fool recordcount, insert the data into a temptable (SELECT * INTO #TempTable) and then use SELECT COUNT(*) FROM #TempTable to get the number of rows. In most cases, you want to use the recordset anyway, so why not store them into a temptable before using the recordset?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"There is always another way to solve it, but I prefer my way.