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

Automatically goto last record in a subform

Status
Not open for further replies.

Bauer99

MIS
May 6, 2003
20
CA
How you code for a subform to automatically go to the last record when the Parent Form record is changed. I added the code:

doCmd.GotoRecord , , acLast

on the Form_Load event of the subform, which works fine until the parent form is changed. I added the same code to the Form_Current event on the subform but then you cannot add a new record to the subform. Any tips?
 
Try putting the following line in the forms "On Load" event:

DoCmd.GoToRecord , , acLast

This will take you to the last record
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top