I have a form with two nested subforms. On the first subform, there is an "Add New" button that will add a new record to the first child form and records to the child's child form. I need to requery to main for to include the new records, but I can't figure out how to set the record selector to the newly added record after I requery. Here is the basic design:
Facility name & address - main form
violations at facility - first child
codes and dates associated with violations - 2nd child
when I add a new violation for a facility through a separate form, 6 codes/dates are added to the 2nd child and the "Add New" form is closed. I requery the parent form but the record displayed is reset to the first parent record. I want the new violation to be displayed along with the parent facility info and the codes and dates. Any help would be appreciated.
Facility name & address - main form
violations at facility - first child
codes and dates associated with violations - 2nd child
when I add a new violation for a facility through a separate form, 6 codes/dates are added to the 2nd child and the "Add New" form is closed. I requery the parent form but the record displayed is reset to the first parent record. I want the new violation to be displayed along with the parent facility info and the codes and dates. Any help would be appreciated.