For some reason the following UPDATE will not add my notes to the Admin_Notes field. The field is empty but once there is data there I want to add to the current data not replace it.
<cfargument name="adminNotes" required="yes">
<cfargument name="form_ID" required="yes">
<cfargument name="quoteNumber" required="yes">
<cfquery name="completeRFQ" datasource="RC">
UPDATE RFQ_Forms
SET Status = 'Complete',
Completion_Date = CURRENT_TIMESTAMP,
Admin_Notes = Admin_Notes + <cfqueryparam value="#ARGUMENTS.adminNotes#">,
Quote_Num = <cfqueryparam value="#ARGUMENTS.quoteNumber#">
WHERE ID = <cfqueryparam value="#ARGUMENTS.form_ID#">
</cfquery>
This column is set as nvarchar(MAX)
The rest of my query completes correctly and I verified that variable being passed has a string in it.
I wrapped the query in a cftry but I am not getting anything back.
After testing I have an update to my question
The column is actually empty since this is the first time I am running it. When I add text to the column by hand and then run the query the second part of text is added to the column.
How can I add data to the column if it is empty and when it has text in it already?