1. Set focus to the subform control.
2. Set focus to some control in the subform.
3. Go to new record.
This kind of thing:
With Me[NameOfYourSubformControlHere]
.SetFocus
.Form![SomeControlNameHere].SetFocus
If Not .Form.NewRecord Then
RunCommand acCmdRecordsGotoNew
End If
End With
When you add a newbutton the button wizard should start. Just select the
Record Operations category, and the Add New Record function. That will create
all the code for you.
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.