I think that the subform context is blocking setting the actual record / field with focus.
A call to daoRS.FindFirst does succeed properly in the subform context. However the button on the main form is left with focus and not the correct located field of the subform.
The locate record code works as desired when NOT involved in a subform context. So I think the fact that the button is on the main form and the multiple records form is within a subform control is some how messing up which control has focus.
If I double click the record of the subform to bring up the edit record dialog, then the correct subform control will retain focus when the edit form closes.
If I push a button on the main form which puts the selected record of the subform into edit mode, then closing the edit form, the button retains focus, not the selected record in the subform control.
How can I hard code shifting focus back to the subform \ correct record of the record list \ ID column of that record... same as if the record had been double clicked?
A call to daoRS.FindFirst does succeed properly in the subform context. However the button on the main form is left with focus and not the correct located field of the subform.
The locate record code works as desired when NOT involved in a subform context. So I think the fact that the button is on the main form and the multiple records form is within a subform control is some how messing up which control has focus.
If I double click the record of the subform to bring up the edit record dialog, then the correct subform control will retain focus when the edit form closes.
If I push a button on the main form which puts the selected record of the subform into edit mode, then closing the edit form, the button retains focus, not the selected record in the subform control.
How can I hard code shifting focus back to the subform \ correct record of the record list \ ID column of that record... same as if the record had been double clicked?