Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2004, 07:08 AM
Authorized User
 
Join Date: Sep 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Greywacke
Default Microsoft JET Database Engine (0x80040E14) Syntax

hi again all,

this is the first time that i do a subquery on an access 2002 database and i am stuck with this syntax error...

Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in query expression 'mmorpg.lng_id EXISTS IN (SELECT * FROM servers WHERE servers.lng_id IN (SELECT * FROM credits WHERE mmorpg.lng_id = credits.lng_rpgid AND credits.lng_userid = 23))'.
/rpgcasino/scripts/functions.asp, line 931

Code:
931:  gwRS.Open SQLStr, gwConn, adOpenDynamic, adLockOptimistic, adCmdText
the sql string is as follows:

Code:
SQLStr = _
"SELECT * FROM mmorpg " & _
"WHERE mmorpg.lng_id EXISTS IN " & _
"(SELECT * FROM servers WHERE servers.lng_id IN " & _
"(SELECT * FROM credits WHERE mmorpg.lng_id = credits.lng_rpgid))"
once again, any swift help asap would be greatly appreciated.

Sincerely,
Pierre du Toit.
__________________
Sincerely,
Pierre "Greywacke" du Toit
[email protected]
don't worry about my 0 thankyou's either way, i would say thank you should you help, and i will gladly help others when this work rush is over.
 
Old February 14th, 2004, 01:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

It's the 'EXISTS IN' that's the culprit.

Try:
SQLStr = _
"SELECT * FROM mmorpg " & _
"WHERE mmorpg.lng_id EXISTS " & _
"(SELECT * FROM servers WHERE servers.lng_id IN " & _
"(SELECT * FROM credits WHERE mmorpg.lng_id = credits.lng_rpgid))"

Or:

SQLStr = _
"SELECT * FROM mmorpg " & _
"WHERE mmorpg.lng_id IN " & _
"(SELECT * FROM servers WHERE servers.lng_id IN " & _
"(SELECT * FROM credits WHERE mmorpg.lng_id = credits.lng_rpgid))"







Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Jet Database Engine Cannot Open [email protected] ADO.NET 3 February 23rd, 2006 01:40 PM
NEW: Microsoft JET Database Engine error'80040e14' rishinicolai Classic ASP Databases 4 December 13th, 2005 05:58 AM
Microsoft JET Database Engine (0x80040E14) tks_muthu Classic ASP Databases 5 January 1st, 2005 10:17 PM
Microsoft JET Database Engine (0x80040E14) HaverkPJ Classic ASP Databases 2 November 16th, 2004 11:25 PM
Microsoft JET Database Engine (0x80040E07) aa Classic ASP Databases 5 August 17th, 2004 07:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.