Here is what I am trying to do:

<cfquery datasource="synergy" name="TakeID">
SELECT id, busunit FROM BusinessUnit
</cfquery>



<cfloop index="i" from="1" to="#TakeID.RecordCount#">


<cfquery datasource="synergy" name="TakeID">
SELECT id, busunit FROM BusinessUnit
</cfquery>


<cfquery datasource="synergy" name="InsertStuff">
INSERT INTO USAmw(BID)
VALUES(#TakeID.ID#)
WHERE Company = '#TakeID.Busunit#'
</cfquery>


</cfloop>

I keep getting this error message which doesn't make any sense:

ODBC Error Code = 37000 (Syntax error or access violation)

[Microsoft][ODBC Microsoft Access Driver] Missing semicolon (;) at end of 
SQL statement.


________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
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