?
Solved

error 'ASP 0115' Unexpected error /index.asp A trappable error occurred in an external object. The script cannot continue running.

Posted on 2003-11-04
6
Medium Priority
?
1,443 Views
Last Modified: 2010-05-18
HELP!!

error 'ASP 0115'
Unexpected error

/index.asp

A trappable error occurred in an external object. The script cannot continue running.

-----

My code is

-----

else if Page="EDAP" then

'Check the database to see if user exists and read in there password
'Initialise the strAccessDB variable with the name of the Access Database
strAccessDB = "Availability"

'Create a connection odject
Set adoCon = Server.CreateObject("ADODB.Connection")
                  
'Database connection info and driver
strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath(strAccessDB)

'Set an active connection to the Connection object
adoCon.Open strCon

'Create a recordset object
Set rsDB = Server.CreateObject("ADODB.Recordset")
Set rsDBB = Server.CreateObject("ADODB.Recordset")

'Initalise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT * FROM CoreTrainers WHERE ID=" & request.form("CT")

rsDB.Open strSQL, strCon

MonthS=request.form("MonthS")
YearS=request.form("YearS")

strSQL = "SELECT * FROM Availability WHERE (ID=" & request.form("CT") & ") AND ([Availability Date],7)=" & MonthS & "/" & YearS & " ORDER BY [Availability Date]"

rsDBB.Open strSQL, strCon

response.write "<br><center><font face=Arial>Editing availability for " & rsDB("Forenames") & " " & rsDB("Surname") & " (XX/" & MonthS & "/" & YearS & ")"

do until rsDBB.EOF
DayS=left(rsDBB("Availability Date"), 2)
response.write DayS
rsDBB.MoveNext
loop

response.write "<center><form method=POST action=index.asp?Page=EDAPB><input type=hidden name=ID value=" & rsDB("ID") & ">"
response.write "Availability dates: <input type=text size=40 name=Avail value=""" & Avail & """><br><br>"
response.write "If Joe Bloggs is available between the 3rd and the 8th, and then available for the 1st/12th/16th, the information you would enter would be:<br><br>1, 3-8, 12, 16"
response.write "<br><br><input type=Submit value=""Edit Availability"">"

rsDB.Close
rsDBB.Close

0
Comment
Question by:Sir_Brock
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 21

Accepted Solution

by:
ap_sajith earned 500 total points
ID: 9678121
0
 
LVL 6

Expert Comment

by:Programming_Gal
ID: 9685377
Agree with ap_sajith
0
 

Author Comment

by:Sir_Brock
ID: 9685920
Well, would it help if I told you I'm on Windows ME using PWS?

Even if it isn't supposed to be on Windows ME, it does work.
0
 
LVL 21

Expert Comment

by:ap_sajith
ID: 9686113
Have you given permissions on the mdb file for the IUSR Account?/
Cheers!!
0
 
LVL 7

Expert Comment

by:vnvk
ID: 11694258
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
    Accept: ap_sajith {http:#9678121}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

vnvk
EE Cleanup Volunteer
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question