Are the two subforms both open at the same time, or does subform 1 close when
you to to subform 2?
If the form stays open then all you should have to do is set the focus back
to a control on subform1. The code for that would look something like the
following (note that subform1ControlName is the name of the subform CONTROL
on the main form, not the name of the subforms SourceObject):
'this is the code for the button in subform #2
Private sub Button_Click()
me.parent.form.subform1ControlName.Form.SomeControl.Setfocus
End sub
If you are closing subform1 then opening #2, you might want to consider
defining a form level variable that stores the PK value of the record in
subform 1 (set it in the subforms current event). Then, when subform #1 gets
the focus, you could check whether that variable has a value, and if so, find
the record with that PK value and move to it. If you need more help with
this idea, post back.
Don''t forget to rate the post if it was helpful!
HTH
Dale