I want to filter a subform (TrainingTopics Subform) by its category Field by double-clicking on the Category field in another subform (TrainingQry2 subform).
Here is the code I have but it doesn't work:
Private Sub Category_DblClick(Cancel As Integer)
Forms![Employees Form]![TrainingTopics subform].Form.Filter = "Category = " & Me.Category & ""
Forms![Employees Form]![TrainingTopics subform].Form.FilterOn = True
End Sub
Any help would be greatly appreciated. Thank you!