How move record in one subform from another?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two subforms. When I click on a ListBox in DonorSubFrm, I want to
move to the specified record in EndwmtSubFrm. DonorSubFrm uses a different
query than EndwmtSubFrm, but both queries contain the field EnFNo. I try to
run this code:

Private Sub AssocEndwmtLstBx_Click()
Forms!SwitchboardNew!EndwmtSubFrm!EnFNo.SetFocus
DoCmd.FindRecord AssocEndwmtLstBx
End Sub

On the 2nd line I get the error "A macro set to one of the current field's
properties failed because of an error in a FindRecord action argument."

Can someone tell me what I am doing wrong? Is there a better way to change
the current record in EndwmtSubFrm?

Thanks in advance.
 
Back
Top