You can modify the code for the checkusername behavior, i
have made it check for update behavior, and if you want to validate
a number look in the code below for the section with three numbers
200, 1 , 50 (text) the last one might be different for you as its
the maximum length of the field, change those numbers to (5, 1, -1)
(numeric) check the numbers on the last line of the code below my
numbers represent text with maxlength of 50 last number, That
should work.
MM_dupKeyRedirect = "YOURREDIRECT.asp"
MM_dupKeyUsernameValue = CStr(Request.Form("UserName"))
Set MM_rsKey_cmd = Server.CreateObject ("ADODB.Command")
MM_rsKey_cmd.ActiveConnection = MM_cvrranchdb_STRING
MM_rsKey_cmd.CommandText = "SELECT UserName FROM UsersLog
WHERE UserName = ?"
MM_rsKey_cmd.Prepared = true
MM_rsKey_cmd.Parameters.Append
MM_rsKey_cmd.CreateParameter("param1", 200, 1, 50,
MM_dupKeyUsernameValue) '