You have set the minimum and maximum to 0, try setting the minimum to -1 and the maximum to 0.
also make sure that the recordset code is before the validation code. If the recordset is created after the validation is performed, it will always fail.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.