How move record in one subform from another?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top