I've got some access code which has been working fine - not now though!!!
on my main form, a pop-up form appears which when a field upon the pop-up is clicked, it adds data to a subform on the main form - below is part of the code - it now doesn't like the docmd.gotocontrol "frmPAIS_links_SECT" line, despite that being the name of the sub-form. its worked fine before, nothing has changed!!!
DoCmd.OpenForm "frmactions_SECT"
DoCmd.GoToControl "frmPAIS_links_SECT"
DoCmd.GoToControl "ID_link"
DoCmd.GoToRecord acActiveDataObject, , acNewRec
on my main form, a pop-up form appears which when a field upon the pop-up is clicked, it adds data to a subform on the main form - below is part of the code - it now doesn't like the docmd.gotocontrol "frmPAIS_links_SECT" line, despite that being the name of the sub-form. its worked fine before, nothing has changed!!!
DoCmd.OpenForm "frmactions_SECT"
DoCmd.GoToControl "frmPAIS_links_SECT"
DoCmd.GoToControl "ID_link"
DoCmd.GoToRecord acActiveDataObject, , acNewRec