Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help

 Post Reply Post Reply Page  12>
Author
donnytree View Drop Down
Newbie
Newbie


Joined: 04 October 2002
Location: United Kingdom
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote donnytree Quote  Post ReplyReply Direct Link To This Post Topic: Help
    Posted: 26 February 2003 at 6:34am

I keep getting a HTTP 500 message, and nothing I do to that line will make it go away.

It is this

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/doncaster/teams/default.asp, line 18

adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" Server.MapPath("/doncaster/db/team.mdb")

(I am hosted on brinkster BTW.)

http://www33.brinkster.com/doncaster/teams/default.asp

I keep trying to alter the line, but nothing works.

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2003 at 6:40am
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/doncaster/db/team.mdb")
There have been many, many posts made throughout the world...
This was one of them.
Back to Top
donnytree View Drop Down
Newbie
Newbie


Joined: 04 October 2002
Location: United Kingdom
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote donnytree Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2003 at 6:48am
Still comes up with the http 500 error. (I'm at college at the moment and cannot get rid of the friendly http message option)
Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2003 at 7:14am
Tools -> Internet Options -> Advanced -> Turn off Friendly HTTP errors
There have been many, many posts made throughout the world...
This was one of them.
Back to Top
skyworld View Drop Down
Senior Member
Senior Member


Joined: 12 December 2002
Location: United States
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote skyworld Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2003 at 7:54am

dim dbloc

dbloc = "doncaster/db/team.mdb"

adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath(dbloc)

 

 

trythat

Back to Top
skyworld View Drop Down
Senior Member
Senior Member


Joined: 12 December 2002
Location: United States
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote skyworld Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2003 at 7:56am

looks like ur prob is here...

 

Microsoft VBScript compilation error '800a03ee'

Expected ')'

/doncaster/teams/default.asp, line 29

Response.Write ("<table border='1' bordercolor='black' cellpadding='0'>"
------------------------------------------------------------------------^
 
u forgot to close the )
Response.Write ("<table border='1' bordercolor='black' cellpadding='0'>")
------------------------------------------------------------------------^
Back to Top
donnytree View Drop Down
Newbie
Newbie


Joined: 04 October 2002
Location: United Kingdom
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote donnytree Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2003 at 9:51am

Now I'm at home, i've sorted it guys, just get this one now...

ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.
doncaster/teams/default.asp, line 38

<html>
<head>
<title>RL Teams</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<%
'Dimension Variables
Dim adoCon
Dim rsTeam
Dim strSQL

'Create ADO Conn Obj
Set adoCon = Server.CreateObject("ADODB.Connection")

'DNS-Less Connection
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ="& Server.MapPath("/doncaster/db/team.mdb")

'Create ADO Recordset
Set rsTeam = Server.CreateObject("ADODB.Recordset")

'Initialise strSQL variable
strSQL = "SELECT team.* FROM team;"

'Open Recordset
rsTeam.Open strSQL, adoCon

Response.Write ("<table border='1' bordercolor='black' cellpadding='0'>")

'Loop recordset
Do While not rsTeam.EOF

'Write the HTML
Response.Write ("<tr>")
Response.Write ("<td>")
Line 37 - Response.Write ("<a href=""view_team.asp?Id_No=" & rsTeam("Id_No") & """>")
Response.Write (rsTeam("Name"))
Response.Write ("</a>")     
Response.Write ("</td>")
Response.Write ("</tr>")
Response.Write ("<tr>")
Response.Write ("<td>")
Response.Write (rsTeam("League"))
Response.Write ("</td>")
Response.Write ("</tr>")

rsTeam.MoveNext

Loop

'Reset server variables
rsTeam.Close
Set rsTeam = Nothing
Set adoCon = Nothing
%>
</body>
</html>

What else is there??

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2003 at 10:47am
exactly like the error says, there is no item name in the recordset with the name of "Id_No", check your SQL again

its amazing how the error messages tell you exactly whats wrong
Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.