Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21100

Recordset cloned and AbsolutePosition

$
0
0
I'd cloned a recordset with the following sentence:

Code:

Set RcsCloned = RcsSource.Clone

    Dim lFound As Boolean
    Dim sIdValue As String

    sIdValue="1"
    lFound=False
    RcsCloned.MoveFirst
    Do While RcsCloned.EOF = False
        If RcsCloned!Id = sIdValue Then
            lFound=True
            Exit Do
        End If
        RcsCloned.MoveNext
    Loop

the problem is that RcsCloned.AbsolutePosition is not updated while debug.
For instance in a Do while sentence although the code execute the MoveNext method, the AbsolutePosition is always 1 an the field values are belong to the row 1.
Why this behavior in a cloned recordset ?

Viewing all articles
Browse latest Browse all 21100

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>