last record in datasheet

S

seeker

I have a form that opens in datasheet in asc order. My client would like for
the form to open at the last record so that he can arrow up if he chooses to
do so. How does a form open to the last record available. Thanks.
 
J

John W. Vinson

I have a form that opens in datasheet in asc order. My client would like for
the form to open at the last record so that he can arrow up if he chooses to
do so. How does a form open to the last record available. Thanks.

Put code in its Load event:

Private Sub Form_Load()
DoCmd.GoToRecord acForm, Me.Name, acLast
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top