I have a While loop (or Do Loop Until) that loops through records in an ADODB record set while .EOF <> True. For some reason it is returning true before the last record.
The record set cannot return a count so I can't use a for loop. EOF shouldn't return as true until past the last record. Any ideas?
-I hate Microsoft!
-Forever and always forward.
Code:
Do While rsTable1.EOF <> True
Count2 = 0
rsTable2.AddNew
For Count = 0 To (rsTable1.Fields.Count - 1)
rsTable2.Fields.Item(Count2).Value = rsTable1.Fields.Item(Count).Value
Count2 = Count2 + 1
Next Count
rsTable1.MoveNext
DoEvents
Loop
The record set cannot return a count so I can't use a for loop. EOF shouldn't return as true until past the last record. Any ideas?
-I hate Microsoft!
-Forever and always forward.