At 11:24 AM 8/18/00 -0400, you wrote:
>Shouldnt this work?
>
>
>I get this error:
>ODBC Error Code = 37000 (Syntax error or access violation)
>[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO
>statement.
>
>
>         <CFQUERY DATASOURCE="wigs.mdb" NAME="GetCurrentItem">
>                 SELECT *
>                 FROM colors
>                 WHERE id = #CurrentID#
>         </CFQUERY>
>
>
>         <CFLoop query="getcurrentitem">
>                 <CFQUERY DATASOURCE="wigs.mdb">
>                 INSERT INTO orders ('#SKU#','#name#','#.price#')
>                 </cfquery>
>         </cfloop>


you need
insert into orders (SKU, name, price) values ('#SKU#', '#name#', '#price#')

>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
>the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to