Hi, Does anyone know how I can control 2 forms with 1 command button?
I have a form with 2 subforms, one is linked and one is not linked. I want to put a command button on the linked form that when clicked will
1. Move to a new record on the linked subform, and
2. Move to the next record on the non-linked subform.
I have this in my event procedure:
DoCmd.GoToRecord , , acNewRec
DoCmd.GoToRecord , [Forms]![frmCityState]![tblQuestions subform], acNext
and I get the error message that, "An expression you entered is the wrong data type for one of the arguments."
Thanks!
I have a form with 2 subforms, one is linked and one is not linked. I want to put a command button on the linked form that when clicked will
1. Move to a new record on the linked subform, and
2. Move to the next record on the non-linked subform.
I have this in my event procedure:
DoCmd.GoToRecord , , acNewRec
DoCmd.GoToRecord , [Forms]![frmCityState]![tblQuestions subform], acNext
and I get the error message that, "An expression you entered is the wrong data type for one of the arguments."
Thanks!