Hey ski2sun:
I have done this very thing on similar occasions, when building my own password protection form, or even the ID search form like you are doing. This is how I've solved your problem.
In this particular code that I have pasted, it looks at the value of the control [S1], and it counts the SIC table for any matches. If it doesn't come up with 1 match it brings the message, "There is no such SIC CODE"
If DCount("[SIC Code]", "SIC", "[SIC Code]=[Forms]![MinSIC]![S1]"

< 1 Then
MsgBox "There is no such SIC CODE"
DoCmd.RunCommand acCmdUndo
Else
End If
For better understanding it should be like this..
If DCount("[FieldNamewherematcheswouldbe]", "Table in which the possible matches are", "[fieldname]=[Forms]![form name where control is]![control name]"

< 1 Then
MsgBox "message you wish to display"
DoCmd.RunCommand acCmdUndo
Else
The action you want to occur if they do find a match
End If
Let me know if this helps.