Records

E

Eric

Dear all,

I've made a form and all went well.

I would like to see the last record that entered everytime when user open
the form. How can i do that

Eric
 
A

Allen Browne

Eric said:
I would like to see the last record that entered everytime when user open
the form. How can i do that

1. Set the form's On Load property to:
[Event Procedure]

2. Click the Build button (...) beside the property.
Access opens the code window.

3. Set up the code like this:

Private Sub Form_Load()
If Not Me.NewRecord Then
RunCommand acCmdRecordsGoToLast
End If
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