if i understand you correctly, both subforms (1 and 2) are on the open main
form, and Control1 is a control on the Sub1 subform. first, i think your
strSQL line should be
strSQL = "Select * from MyTable where Id = " & intCtrl
and try the next two lines as
Me.Parent!Sub2.Form.RecordSource = strSQL
Me.Parent!Sub2.Form.Requery
since you're running the code from the GotFocus event of Control1, keep in
mind that if there's no value in the control when it gets the focus, your
code will at best give you no results, and at worst will err out.
other than that, just make sure that Sub2 is the name of the subform
*control* within the main form (the subform control name *may* be different
than the name of the subform).
hth
> Different error now!
>
[quoted text clipped - 32 lines]
> > >
> > > Grateful for help.