I have had the same problem when I coded 2 identical query statements just
as you have. Try renaming or altering one of your "TakeID" queries.

Sincerely,

Shane Witbeck
Webmaster
[EMAIL PROTECTED]
www.digitalsanctum.com




-----Original Message-----
From: S R [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 28, 2000 6:41 PM
To: [EMAIL PROTECTED]
Subject: cant figure out


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.

------------------------------------------------------------------------------
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