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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move next in a sub form - HOW!?!

Status
Not open for further replies.

jamtoast

Technical User
May 1, 2002
9
GB
trying to do a "move next" in a sub form - it works as a form but not as a subform.
How can I get it working as a subform?
 
If you are trying to do a move next on the recordset for the main form from a subform then you need to include the main form in your code. Here is the standard code generated by the Control Wizard for a Move Next command button:

DoCmd.GoToRecord , , acNext

Here is what you need to move the main form recordset:

DoCmd.GoToRecord , Me.Parent.Name, acNext

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top