search app

hello,

Im trying to make search application to find field from form application. If the field data is not found from the form application it pops out the form to add new record in the database and that is what i do not want. Im wondering how can i pop up alert or something if the field data is not found?