Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Stopping ODBC connection window from coming up...
I am using Oracle 7 so the error number I list
below might be different.
Anyways, this is one way to do it..
On error resume next
Userid = Request("IDNO")
Passid = Request("PassWd")
Set Connect =
Server.CreateObject("ADODB.Connection")
Connect.Open "DatabaseName", Userid, Passid if Connect.Errors.Item(0).NativeError = 1017 then ' check the oracle error number for invalid username/password
ErrorText = "<font color=red>Please enter a valid username and password</font><p>"
else ...
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Oct 07 1999 - 11:55:15 CDT