A family of Microsoft relational database management systems designed for ease of use.
In that case I'd use the AfterUpdate event of the combo box to set the subform's Filter property. Base the subform on a query showing all categories; in the combo box's AfterUpdate event put code like
Private Sub cboCategory_AfterUpdate()
On Error GoTo Proc_Error
If IsNull(Me.cboCategory) Then
Me.subformname.Form.Filter = ""
Me.subformname.Form.FilterOn = False
Else
Me.subformname.Form.Filter = "[CategoryID]=" & Me.cboCategory
Me.subformname.Form.FilterOn = True
End If
Proc_Exit:
Exit Sub
Proc_Error:
MsgBox "Error " & Err.Number & " in setting subform filter:" & vbCrLf & Err.Description
Resume Proc_Exit
End Sub