Thanks Andy! This worked like magic!
At 04:28 PM 8/18/00 +0100, you wrote:
>Nope you need....
>
>INSERT INTO orders Values('#SKU#','#name#','#.price#') providing that this
>is all of the fields in the table
>
>Or better still....
>
>INSERT INTO orders (<field1>, <field2>, <field3>)
>
>Values('#SKU#','#name#','#.price#')
>
>
>
>-----Original Message-----
>From: Chad [mailto:[EMAIL PROTECTED]]
>Sent: 18 August 2000 16:25
>To: [EMAIL PROTECTED]
>Subject: INSERT into a database
>
>
>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>
>----------------------------------------------------------------------------
>--
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>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/cf-talk@houseoffusion.com/
>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/cf-talk@houseoffusion.com/
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.