you need to use the Server Validations part of CSS Form Buiilder.
Go to Insert -> Webassist -> CSS Form Builder -> Server Validations
Select number validation.
For the server variable enter:
$totalRows_RecordsetName
where RecordsetName is the name of your recordset.
Set the minimum to -1 and the max to 0