User server side validation. In the Server Behaviors panel, click the plus button and select Validation Toolkit -> Server Validation. Select Numeric validation. for the server variable enter:
$totalRows_<Recordset Name>
where <Recordset Name>is the name of your recordset.
After you click the plus button to add it to the validation list, set the minimum number to -1 and the max to 0.