Add to a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there anyway, that when a button for add a new file is clicked, it will
return to the top of the form? Currently it goes blank and stays at the
point in the form it was when the button was clicked. This is not what my
users want, they want it to go back to the top.
 
Use the form's OnCurrent event to move the focus to the control of your choice.

Private Sub Form_Current()
If Me.NewRecord Then Me!myFirstField.SetFocus
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

Back
Top