Find Control on Form link to subform

  • Thread starter Thread starter Laura
  • Start date Start date
L

Laura

Please, I put a find command button on my form, but it
wont find anything in the subform i have! It wont bring
up records that I know exist
 
Private Sub cmdFind_Click()
The Code is really basic, but it wont search my subforms
On Error GoTo Err_cmdFind_Click


Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, ,
acMenuVer70

Exit_cmdFind_Click:
Exit Sub

Err_cmdFind_Click:
MsgBox Err.Description
Resume Exit_cmdFind_Click

End Sub
 
You need to set the focus to the control on your subform that you want to
search.
 

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

Back
Top