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

How to go to last record in my form?

Status
Not open for further replies.

ozean

Technical User
Jan 8, 2005
14
SE
I have a form with a subform. When form is opened it always starts with the first record. How do I get the form to display the last record when opened? As the form contains monthly bills I have to step thrue all months to come to the last month everytime I will add a month.

Regards
Stefan
 
[tt]DoCmd.GoToRecord , , acLast[/tt]
to go to last record (on open event)
---------------------------------
for the sub form
you can set the subform recordsource to a query sorted descending the record number. Then the last number will be on top


________________________________________________________________________
Zameer Abdulla
Visit Me
A person who misses a chance and the monkey who misses its branch can't be saved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top