Force new record

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
 
A

Arvin Meyer [MVP]

Try the following in the Open event of the subform:

Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acNewRec
End Sub
 
J

John

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
 
J

John

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

Regards

John
 

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