Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to move to next record

Status
Not open for further replies.

srast

MIS
Nov 11, 2002
42
US
Hello all.
I have a form with a subform. The subform coantains several records, and the view (for the subform) is Single Form.
I have a button on the main form that performs certain functions when clicked, and then I want it to move to the next record of the subform.
Anyone have an idea of what code I could use? Is there a method or function available? (Will Movenext work here?)
Thanks.
Steve
 
Someone suggested the Bookmark property. I made a clone of the recordset, and set the clone's Boookmark equal to form's Bookmark. Then, move the clone one record forward with MoveNext. Finally, set the form's Bookmark equal to the clone's Bookmark. That way, whatever record the user scrolls to via the navigation buttons, the button moves one record forward.
Hope this helps someone!
Thanks.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top