Set focus to the sub-form and then in that context, issue a DoCmd.GoToRecord acNewRecord - which you can look up before you do it just to see the nuances of what it does.
![]()
Thanks I will try this.
You're missing two commas:
DoCmd.GoToRecord , , acNewRecord
Hi there.I have found using:
DoCmd.RunCommand acCmdRecordsGoToNew
works better than:
DoCmd.GoToRecord acActiveDataObject, , acNewRec
when you are setting the focus to a different form. You get an error message like you did.
That confirms the advice in post #3You are over thinking this.
Sir. You are correct. We are overthinking this simple problem. I am going back to basic just try to navigate as the records. That is what I am going to try now. I will download you and maybe you have simple solution. Thanks. Will let you know if it solve my problem.You are over thinking this.
Sir. You are correct. We are overthinking this simple problem. I am going back to basic just try to navigate as the records. That is what I am going to try now. I will download you and maybe you have simple solution. Thanks. Will let you know if it solve my problem.You are over thinking this.