hi guys
I'm having a problem with the code below. The SQL statement runs fine and
i've even checked the database in the backgroud and it contains a perfect set
of records waiting to be picked up ... yet the rs.RecordCount funtion is
returning a value which is 1 less than the correct figure. i checked the
database on various instances and see that it always misses the last line, of
the recordset.
anyone have any ideas on how to fix this?
txtRecordset.CursorLocation = adUseClient
txtRecordset.Open "SELECT " & tab35 & ".prefix, " & tab35 & ".Indexing, " &
tab35 & ".extension, " & tab36 & ".Title FROM " & tab35 & " INNER JOIN " &
tab36 & " ON " & tab35 & ".Indexing = " & tab36 & ".Indexing", txtConnection,
adOpenStatic, adLockOptimistic
'msgbox "Check client_DB temp"
'results are perfect in the DB... the recCount value is wrong. not picking
up the last value.
Dim RecCount
RecCount = txtRecordset.RecordCount
TotalRecCount = TotalRecCount + RecCount
--- end.