I need to take information from one table and move it over to another table within the same database with a click of a button. What I've tried doing is displaying the data then using a button <form method=post action=link><input type=submit value=retire></form> where the link would look something like this
etc etc using a url variable for each varaiable in the record. I also just tried passing along hte id and no other variables.
It then takes you to a page that has a cfinsert and a delete statement to remove the data from table a and insert it in to table b.. the problem is though It only removes the data from table a and does NOT insert it in to table b... here is the code from that page:
<
CFINSERT
DATASOURCE="db"
TABLENAME="Retired_Security"
>
<CFQUERY
DATASOURCE="db"
>
DELETE
FROM Security
WHERE ID = #ID#
</CFQUERY>
Thanks in advance for any help!
Brandon
etc etc using a url variable for each varaiable in the record. I also just tried passing along hte id and no other variables.
It then takes you to a page that has a cfinsert and a delete statement to remove the data from table a and insert it in to table b.. the problem is though It only removes the data from table a and does NOT insert it in to table b... here is the code from that page:
<
CFINSERT
DATASOURCE="db"
TABLENAME="Retired_Security"
>
<CFQUERY
DATASOURCE="db"
>
DELETE
FROM Security
WHERE ID = #ID#
</CFQUERY>
Thanks in advance for any help!
Brandon