P
Pierre
I would like to apply a simple filter to a subform from the Mainform.
Main From = SearchPage
Sub Form = Cat Codes subform
Filter Box = Text49
Filter Field = Definition
Filter Command = Command51_Click
Code that I’m trying to use and is not working. Results is a blank subform
with no filtered records.
Private Sub Command51_Click()
Me.[Cat Codes Subform].Form.Filter = “Definition =’†& Me.Text49 & “’â€
Me.[Cat Codes Subform].Form.FilterOn = True
Me.[Cat Codes Subform].Form.Refresh
End Sub
NOTE: definition is a group of words so I need to be able to search for any
word within the field.
Main From = SearchPage
Sub Form = Cat Codes subform
Filter Box = Text49
Filter Field = Definition
Filter Command = Command51_Click
Code that I’m trying to use and is not working. Results is a blank subform
with no filtered records.
Private Sub Command51_Click()
Me.[Cat Codes Subform].Form.Filter = “Definition =’†& Me.Text49 & “’â€
Me.[Cat Codes Subform].Form.FilterOn = True
Me.[Cat Codes Subform].Form.Refresh
End Sub
NOTE: definition is a group of words so I need to be able to search for any
word within the field.