My goal is to copy image names from one table to another table where the first and last names are matching. I must have some silly mistake but i am suffering from tunnel vision at this point,
+++++++++++++++++++++++++++++++++++=
Here is the code
<cfquery datasource="publication" name="pics">
SELECT s.lastname , s.firstname, p.lastname , p.firstname, p.image
FROM picnames p inner join students s on s.lastname = p.lastname and s.firstname = p.firstname
</cfquery>
<cfloop query="pics">
<cfoutput><CFQUERY datasource="publication">
UPDATE students
SET imagename = #pics.image#
WHERE lastname = #pics.lastname# and firstname=#pics.firstname#
</CFQUERY></cfoutput>
</cfloop>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Here is the error
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '000002.tif'.
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (7:12) to (7:45).
+++++++++++++++++++++++++++++++++++=
Here is the code
<cfquery datasource="publication" name="pics">
SELECT s.lastname , s.firstname, p.lastname , p.firstname, p.image
FROM picnames p inner join students s on s.lastname = p.lastname and s.firstname = p.firstname
</cfquery>
<cfloop query="pics">
<cfoutput><CFQUERY datasource="publication">
UPDATE students
SET imagename = #pics.image#
WHERE lastname = #pics.lastname# and firstname=#pics.firstname#
</CFQUERY></cfoutput>
</cfloop>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Here is the error
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '000002.tif'.
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (7:12) to (7:45).