Does Any One Know The Code For The 'move' Method Of Ado Invb6
Ado
Collapse
X
-
Tags: None
-
open the connection
open the recordset
Then use any of the four MOVE mthods of recordset object to move back and forth.
Dont forget to check for BOF and EOF before moving.Comment
-
Hi,
.MoveFirst
.MoveNext
.MovePrevious
.MoveLast
are Self Explainatory.
.Move 3 Moves to the 3rd record from current position.
If you want to move to 8th rec from beginning, then you will have to move first and then 8:
RST.MoveFirst
RST.Move 8
Regards
VeenaComment
-
For ADODC use these commands :Originally posted by jojomannohDoes Any One Know The Code For The 'move' Method Of Ado Invb6
To navigate
For ADODB use these commands :Code:With ADODC1.Recordset .MoveNext .MovePrevious .MoveLast .MoveFirst EndWith
To navigate
But in this case u need to define ADODB connection and its Recordset (REC in example).Code:With REC .MoveNext .MovePrevious .MoveLast .MoveFirst EndWith
For more help you can contact me through Yahoo or you can PM me.Code:Dim DATA As New ADODB.Connection ' Defining Connection Dim REC As New ADODB.Recordset ' Defining Recordset
You can find my email address from my profile (By clicking my avatar or name).
Regards
>> ALI <<Comment
Comment