Hi; I have a subform linked with a Main form. Both linked to seperate tables. The subform is in a Single form view. When I try to add new record (via button created with the wizard) ,using just the subform by itself, it works fine. However, when I open the main form with the subform and then try to add the record via the subform i get a message: You can't go to the specified record.
Under the New Record btn this is the code I have:
What am I doing wrong?? Do I have to somehow preset the value of the linked field in the subform so it matches the master field?
(I have allow additions, etc.. set properly, since as I said above I can add records just fine when subform is used on its own)
Under the New Record btn this is the code I have:
Code:
DoCmd.GoToRecord , , acNewRec
What am I doing wrong?? Do I have to somehow preset the value of the linked field in the subform so it matches the master field?
(I have allow additions, etc.. set properly, since as I said above I can add records just fine when subform is used on its own)