People need to enter their login id to progress to the next page. My script works ok if they enter a valid number however if they enter a wrong login that isn`t in the DB, I get an unfriendly error message. Is there a way to check first if the login is correct and if not display a friendly message.
I have
which returns
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested properties.
/login/index,asp, line 18
(line 18 is the rs.open line)
I have
Code:
SQL = "SELECT * FROM logins where id = " & request.form("loginid")
set rs = server.CreateObject("ADODB.RECORDSET")
rs.open SQL,objConn, 3,3
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested properties.
/login/index,asp, line 18
(line 18 is the rs.open line)