Guest_imported
New member
- Jan 1, 1970
- 0
Hello
I'm using VB frontend and Access2000 backend. I've set up a connection using ADO.
I can successfully set up the connection and populate the recordset, however, I need help with assigning values from textboxes to the recordset and navigating through the recordset.
To assign values from a text box to the recordset I was going down the lines of:
RS.fields("details.surname"
= txtSurname.Text
RS.Update
To navigate through the recordset I used something like the following attached to a command button:
RS.MoveNext
If RS.EOF Then
RS.MoveLast
End If
(nothing happens and no error is generated)
I've set up a similar application using the dataEnvironment object and was able to achieve the above, but would prefer to use ADO objects.
Some examples would be appreciated, Thanks
I'm using VB frontend and Access2000 backend. I've set up a connection using ADO.
I can successfully set up the connection and populate the recordset, however, I need help with assigning values from textboxes to the recordset and navigating through the recordset.
To assign values from a text box to the recordset I was going down the lines of:
RS.fields("details.surname"
RS.Update
To navigate through the recordset I used something like the following attached to a command button:
RS.MoveNext
If RS.EOF Then
RS.MoveLast
End If
(nothing happens and no error is generated)
I've set up a similar application using the dataEnvironment object and was able to achieve the above, but would prefer to use ADO objects.
Some examples would be appreciated, Thanks