hi
i have two subforms on a form (they are on different tabs)
the user fills out information on the first subform, click on a button 'next' and moves ot the second to fill out more info.
I have a button 'previous' on the second subform that i want to bring the user back to the first subform.
the code in the 'next' button is
docmd.GoToControl "PartBSubform"
and this works
the code in the 'previous' button is
docmd.GoToControl "PartASubForm"
and it doesn't work. A message saying "Cannot set focus to control PartASubForm appears
I just converted the database to access 2002. Before it was access 97 and it worked.
Does anyone know what i am doing wrong?
Thanks
dan
i have two subforms on a form (they are on different tabs)
the user fills out information on the first subform, click on a button 'next' and moves ot the second to fill out more info.
I have a button 'previous' on the second subform that i want to bring the user back to the first subform.
the code in the 'next' button is
docmd.GoToControl "PartBSubform"
and this works
the code in the 'previous' button is
docmd.GoToControl "PartASubForm"
and it doesn't work. A message saying "Cannot set focus to control PartASubForm appears
I just converted the database to access 2002. Before it was access 97 and it worked.
Does anyone know what i am doing wrong?
Thanks
dan