J
JustinP
How is this done? I can't seem to get it too work...
I'm using:
Me!Forms!MasterOwner!DoCmd.GoToRecord , , acNewRec
I'm using:
Me!Forms!MasterOwner!DoCmd.GoToRecord , , acNewRec
I get the error message:
...can't find the field "Forms" refered to your expression.
I used:
Me!Forms!frmCORRESPONDENCE!Form!txtITEM.SetFocus
DoCmd.GoToRecord , , acNewRec
Thanks
You're right, thanks.
It now says "Can't go to the specified record"
I'm using:
Forms![frmCORRESPONDENCE].Form![subfrmCorrespondence].Form![txtITEM].SetFocus
DoCmd.GoToRecord , , acNewRec
Any ideas?
John said:Belt and suspenders!
Me!
and
Forms!frmCORRESPONDANCE
both mean the same thing (assuming that this is frmCORRESPONDANCE
you're working on).
Use one or the other - not both.
John W. Vinson[MVP]
Worked it out. Needed to set AllowAdditions for both main form and
subform. Thanks for your help.