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

go to last record on form 1

Status
Not open for further replies.

jazminecat

Programmer
Jun 2, 2003
289
US
I have a form for adding a new record. when the user clicks Save, it asks if they want to add another. If not, it saves the record and opens the BidScheduleForm. I'd like to go to the last record on the BidScheduleForm, which should be the new one just added.

I've played with this to no avail in the Onclick event of the Save button:

DoCmd.OpenForm "BidScheduleForm"
BidScheduleForm.Recordset.MoveLast

It gives me an "Object Required" error, and just an ok button. It does open the right form, just not at the last record like I wanted. Any thoughts?

Thanks!

 
And this ?
Forms!BidScheduleForm.Recordset.MoveLast

Or this ?
DoCmd.GoToRecord acDataForm, "BidScheduleForm", acLast

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
ah, the second one seems to be working. thank you again PHV!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top