ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 28th, 2004, 07:46 AM
Panther893's Avatar
Panther893 Panther893 is offline
MostarDesigns.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2004
Posts: 834 Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 22 h 29 m 4 sec
Reputation Power: 56
Send a message via MSN to Panther893
ODBC Error Code = 37000 (Syntax error or access violation)

ok i get this error

Error Occurred While Processing Request
Error Diagnostic Information
ODBC Error Code = 37000 (Syntax error or access violation)


[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'shoppingcart.itemid = sizes.itemid Inner Join colors On shoppingcart.itemid = colors.itemid'.



The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (92:1) to (92:74).


Date/Time: 08/28/04 08:44:42
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Remote Address: 212.39.108.22
Query String: pageid=shoppingcart&menu=1



when i run this query

<cfquery name="seleccart" datasource="#datasourcename#" blockfactor="100">
SELECT shoppingcart.itemid, shoppingcart.ID AS SCID, shoppingcart.quantity, shoppingcart.size, shoppingcart.color, colors.color, colors.ID AS CID, sizes.size, sizes.ID AS SID
FROM shoppingcart Inner Join sizes On shoppingcart.itemid = sizes.itemid
Inner Join colors On shoppingcart.itemid = colors.itemid
WHERE shoppingcart.scid = #session.scart#
</cfquery>



anyone have any idea what it can be???

Reply With Quote
  #2  
Old August 28th, 2004, 02:01 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
Can you copy and execute the generated SQL (look in the debugging information) in the Access SQL editor? I assume it doesn't.

My guess is that it's your inner join syntax (try putting in parenthesis around the join statements, or use the alternate join syntax in the where clause instead of in the from clause), or that shoppingcart.scid is a character field and you may need quotes around the variable.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old August 28th, 2004, 03:11 PM
Panther893's Avatar
Panther893 Panther893 is offline
MostarDesigns.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2004
Posts: 834 Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 22 h 29 m 4 sec
Reputation Power: 56
Send a message via MSN to Panther893
Wink

i fixed it

it works with this query

<cfquery name="seleccart" datasource="#datasourcename#" blockfactor="100">
SELECT shoppingcart.itemid, shoppingcart.ID AS SCID2, shoppingcart.quantity, shoppingcart.size, shoppingcart.color, colors.color AS ITEMCOLOR, colors.ID AS CID, sizes.size AS ITEMSIZE, sizes.ID AS SID
FROM ((shoppingcart Inner Join sizes On shoppingcart.itemid = sizes.itemid)
Inner Join colors On shoppingcart.itemid = colors.itemid)
WHERE shoppingcart.scid = #session.scart#
ORDER BY sizes.size, colors.color
</cfquery>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > ODBC Error Code = 37000 (Syntax error or access violation)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT