How open datasheet form to new record

I have a form opening in datasheet view.  But when it opens I want the focus to be on a new record.  How can this be done?
SteveL13Asked:
Who is Participating?
 
SimonConnect With a Mentor Commented:
One way is to put this into the form.Open event

DoCmd.GoToRecord , , acNewRec
0
 
Rey Obrero (Capricorn1)Commented:
1. set the Data Entry property to Yes
2. or open the form in Dataentry mode
    docmd.OpenForm "formx",,,,acFormAdd
0
 
SteveL13Author Commented:
And the form is opened with:

DoCmd.OpenForm "frmFormName", acFormDS, , , acFormEdit, acWindowNormal

Because I do want the other records to display.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.