Force new record

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi,
I am using a combo box on a main form to populate records in a subform.
1st of all, once a record has been populated i would like the focus to
automatically jump to the new record line.
2nd How can I make the new record line on the subform have focus on openeing
the database?

Is this possible?

Regards

John
 
Try the following in the Open event of the subform:

Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acNewRec
End Sub
 
Arvin,
Thanks for the reply. That works great for opening the form but I also need
the new record field to be selected for the next new record after
population. How would I accomplish that?

Regards

John
 
Thanks Arvin, it took a bit of finding, I should have mentioned I use Access
2007

Regards

John
 
Back
Top