K
Karen
I have a subform which is locked with subform.allowadditions = false.
When I press a "AddNew" command button on the main form, I want to move the cursor to the new record field on the subform.
I have tried this code:
Me.TestContactQuery.Form.AllowAdditions = True
DoCmd.GoToRecord acDataForm, Me.TestContactQuery.Form.Name, acNewrecord
and I've tried this code
Me.TestContactQuery.Form.AllowAdditions = True
DoCmd.GoToRecord acDataForm, "TestContactForm", acNewrecord
In both cases I get the following error
"The object "TestContactForm" is not open.
Any suggestions?
When I press a "AddNew" command button on the main form, I want to move the cursor to the new record field on the subform.
I have tried this code:
Me.TestContactQuery.Form.AllowAdditions = True
DoCmd.GoToRecord acDataForm, Me.TestContactQuery.Form.Name, acNewrecord
and I've tried this code
Me.TestContactQuery.Form.AllowAdditions = True
DoCmd.GoToRecord acDataForm, "TestContactForm", acNewrecord
In both cases I get the following error
"The object "TestContactForm" is not open.
Any suggestions?