I found a workaround. I didn't actually need the SetValue command as the detail form's query is using criteria based on the active record on the main form. By removing the SetValue and just minimizing the main form when the Detail form is loaded the record position is saved. Then, when the...