R
roger
( I KNOW i've done this before!)
I have 2 unbound subforms on a main form. When the user clicks a record on
subform A, i need to find the corosponding record in subform B.
This code:
Me.Parent.SetFocus
DoCmd.GoToControl "sbfrmB"
DoCmd.GoToControl "ItemID"
DoCmd.FindRecord me.ItemID
fails on the 1st line (I think) but actually errors on line 2 with "there is
no field named sbfrmB in the current record." which is because I havn't
managed to get the focus back to the main form.
what did I do wrong?
aha tia
I have 2 unbound subforms on a main form. When the user clicks a record on
subform A, i need to find the corosponding record in subform B.
This code:
Me.Parent.SetFocus
DoCmd.GoToControl "sbfrmB"
DoCmd.GoToControl "ItemID"
DoCmd.FindRecord me.ItemID
fails on the 1st line (I think) but actually errors on line 2 with "there is
no field named sbfrmB in the current record." which is because I havn't
managed to get the focus back to the main form.
what did I do wrong?
aha tia