An Easy Choice for the User

12.  To keep things fairly simple, we just permit the user to move to the next record in the recordset. Add the following code to the cmdMoveNext button's Click event:

Private Sub cmdMoveNext_Click()
clsBoundClass.MoveNext
End Sub

When the cmdMoveNext command button is clicked, we call the MoveNext event in our class. The record pointer is moved to the next record and the two bound text boxes display the contents of the PubID and Name fields for that record.

© 1998 by Wrox Press. All rights reserved.