I am trying to use the following code on the Click Event to filter one subform from another. It is working except for the fact that a parameter box pops up with the Report ID that I clicked on. If I type in the Record ID, then the filter works. I do not want to have this parameter box pop up. Please let me know what needs to be changed for this not to happen. Note that my field Report ID has a space. I am wondering if this is the reason. Thanks in advance.
Private Sub REPORT_ID_Click()
Forms![Top Defects]![tbl_Inspection_Results subform1].Form.Filter = "[REPORT ID] = " & Me.[REPORT ID]
Forms![Top Defects]![tbl_Inspection_Results subform1].Form.FilterOn = True
End Sub