Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Error Message! HELP!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error Message! HELP!

 Post Reply Post Reply
Author
Bibsta View Drop Down
Newbie
Newbie
Avatar

Joined: 19 December 2004
Location: United Kingdom
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bibsta Quote  Post ReplyReply Direct Link To This Post Topic: Error Message! HELP!
    Posted: 27 March 2005 at 3:59pm
I Keep On Getting This Error On My Script:
 
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.

/navigation2.asp, line 15

 
This Is My Line 15:
 
strCatRs.Open "Select * from " & tblNavCategory & Cat_ID, dbConn,1,3
 
Can Any 1 Help ME??
 
Thanks
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2005 at 4:00pm
strCatRs.Open "Select * from " & tblNavCategory & " Cat_ID"


Edited by Gullanian - 27 March 2005 at 4:01pm
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2005 at 4:46pm
is there a space between " & tblNavCategory and Cat_ID


is tblNavCategory a prefix or another table that you are getting from?
Back to Top
Bibsta View Drop Down
Newbie
Newbie
Avatar

Joined: 19 December 2004
Location: United Kingdom
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bibsta Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2005 at 6:30pm
Hi I sorted that problem thanks to Gullanian but now im have a problem closing the database i keep getting this error:

Microsoft VBScript compilation
error '800a03fb'

Expected 'Loop'

/navigation2.asp, line 66

This is the lines of code the bottom line is 66:

<%
'Loop Categorys
strCatRs.MoveNext
Loop
Do Until strCatRs.EOF
strCatRs.Close
Set strCatRs = nothing
'Loop Sub Menus
strSubRs.MoveNext
Loop
Do Until strSubRs.EOF
strSubRs.Close
Set strSubRs = nothing
%>
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 28 March 2005 at 6:45am
try adding a loop just before the %>


from what you have there thats all i can suggest as you have an open Do While
Back to Top
Bibsta View Drop Down
Newbie
Newbie
Avatar

Joined: 19 December 2004
Location: United Kingdom
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bibsta Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2005 at 12:51pm
Sorry fot the late reply i been on holiday
I fixed the above error but i am getting a new error

Microsoft VBScript runtime error '800a01a8'

Object required

/navigation2.asp, line 22

Line 22 is underlined
<%
Do Until strCatRs.EOF
'Gets The Category ID
strCat_ID = strCatRs.Fields("Cat_ID").Value
%>
 
I have tryed do while with no look
 
Any suggestions?
Back to Top
 Post Reply Post Reply

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.