create a recordset to lookup the value that was entered in the database.
Add server validation. Set the server variable to "$totalRows_RecordsetName" where RecordsetName is the name of the recordset.
Use number validation. set the minimum to -1 and the maximum to 0.