Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Stopping ODBC connection window from coming up...

Re: Stopping ODBC connection window from coming up...

From: <steve_billingsley_at_my-deja.com>
Date: Thu, 07 Oct 1999 16:55:15 GMT
Message-ID: <7tij9b$v2f$1@nnrp1.deja.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US