What you could do is setup a lookup expression in the command button's event. Something like this:
If Not IsNull(DLookUp("[ID Field]","[Table query is bound to]","[ID Field]=" & Forms!frmSearch!Listbox)) Then
DoCmd.OpenForm "frmTracking", , ,"[ID Field]=" & Forms!frmSearch!Listbox
Else...