Help with Microsoft JET Database Engine error '80040e4d'

I know why this is happening to me. It's due to a database password on an MS
Access file. I can put code in each page that calls the database and
redirect the user to the log in page, but I was wondering if I could trap
this error and cause it to be dealt with as I would a 404 error. Is there
any universal way to trap this error?

Thanks
jmev7 [ Mo, 12 Juni 2006 23:29 ] [ ID #1352272 ]

Re: Help with Microsoft JET Database Engine error '80040e4d'

jmev7 wrote:
> I know why this is happening to me. It's due to a database password
> on an MS Access file. I can put code in each page that calls the
> database and redirect the user to the log in page, but I was
> wondering if I could trap this error and cause it to be dealt with as
> I would a 404 error. Is there any universal way to trap this error?
>
One way would be to use an include file that performs the database
connection.
Another would be to use a custom error page:
http://www.aspfaq.com/show.asp?id=2335
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
reb01501 [ Di, 13 Juni 2006 00:09 ] [ ID #1352274 ]

Re: Help with Microsoft JET Database Engine error '80040e4d'

Thanks Bob. I have used the include to manage the connection, or actually to
redirect the viewer to the login page when the session variable was not yet
set. I just hate to do this on each and every page I'm working on.

Thanks.


"Bob Barrows [MVP]" <reb01501 [at] NOyahoo.SPAMcom> wrote in message
news:uYr0jzmjGHA.4652 [at] TK2MSFTNGP05.phx.gbl...
> jmev7 wrote:
>> I know why this is happening to me. It's due to a database password
>> on an MS Access file. I can put code in each page that calls the
>> database and redirect the user to the log in page, but I was
>> wondering if I could trap this error and cause it to be dealt with as
>> I would a 404 error. Is there any universal way to trap this error?
>>
> One way would be to use an include file that performs the database
> connection.
> Another would be to use a custom error page:
> http://www.aspfaq.com/show.asp?id=2335
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>
jmev7 [ Di, 13 Juni 2006 02:08 ] [ ID #1353653 ]
Webserver » microsoft.public.inetserver.asp.db » Help with Microsoft JET Database Engine error '80040e4d'

Vorheriges Thema: Checkbox Validation and dynamic name set
Nächstes Thema: problem with ASP page