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
1,420 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
6 Comments
 
LVL 21

Accepted Solution

by:
ap_sajith earned 125 total points
Comment Utility
0
 
LVL 6

Expert Comment

by:Programming_Gal
Comment Utility
Agree with ap_sajith
0
 

Author Comment

by:Sir_Brock
Comment Utility
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
Comment Utility
Have you given permissions on the mdb file for the IUSR Account?/
Cheers!!
0
 
LVL 7

Expert Comment

by:vnvk
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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/…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now