I think I (we) misunderstood your question. The code you have there makes no sense if looking to open another form ("Applicants") that match the ID in a subform "filtered" by your search box in your main form.
Code:
If Me.qrySearchApp_subform.Form.ClientID = "" Then
MsgBox "No record selected.", vbOKOnly
Else
DoCmd.OpenForm "Applicants", , , "ClientID = """ & Me.qrySearchApp_subform.Form.ClientID & """
End If
You could use a dCount on the subform's record source (dCount("*","tblTableName","[ClientID] Like '" & Forms!frmYourForm!txtSearchBox & "'")=0) to see if there are no records returned or use the subform recordset.recordcount property:
Code:
If Me.qrySearchApp_subform.Form.Recordset.RecordCount =0 Then
MsgBox "No record selected.", vbOKOnly
Else
DoCmd.OpenForm "Applicants", , , "ClientID = """ & Me.qrySearchApp_subform.Form.ClientID & """
End If
Cheers,
Vlad