DoCmd.GoToRecord

S

smk2

Greetings and many thanks for the help

I have code in a subform as follows

With Me.frmPatPhoneSub.For

.AllowAdditions = Tru
.SetFocu
DoCmd.GoToRecord , , acNewRe

End Wit

The form it is referring to is a sub-sub form that I am trying to add a new record to
But it appears that the DoCmd.GoToRecord... line gets applied to the subform, not the sub-sub form even though I have just set the focus to the sub-sub form
How should I modify the code so that a new record is added to the sub-sub form
Thanks so much
SMK
 

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