rostabosta
MIS
I would like to have a button that creates a new record for a subform, and the button is not located on either the main form or the subform, but a different form.
I would think it would look something like this:
DoCmd.GoToRecord acDataForm, "Forms![Form]![SubForm].Form",acNewRec
But access will generate an error saying that form is not open. I also tried storing the "Forms![Form]![SubForm].Form" into a string variable, and putting the variable into the DoCmd function but that received the same error. Thanks for your help!
I would think it would look something like this:
DoCmd.GoToRecord acDataForm, "Forms![Form]![SubForm].Form",acNewRec
But access will generate an error saying that form is not open. I also tried storing the "Forms![Form]![SubForm].Form" into a string variable, and putting the variable into the DoCmd function but that received the same error. Thanks for your help!