TheDoubleB
Programmer
This is a simple update that is giving me problems.
<CFQUERY name="UpdateNotes" dbtype="ODBC" datasource="Notebook">
Update Notes
Set
ContactPerson="#Form.Person#",
ContactPhone="#Form.Phone#",
Notes="#Form.Note#"
Where
ID='#NR#'
</CFQUERY>
I use a MAX() query on the previous page to get the #NR# and then pass it to this cfm with submit.cfm?NR=#NR#.
If I use
<CFOUTPUT>
'#NR#'
</CFOUTPUT>
Is shows F1B6A550-547F-11D5-B2B0-00010270293C, which is the ID I want to update. The ID is an Autonumber field.
I've tried it with single quotes, double quotes, no quotes, same error. Any ideas?
<CFQUERY name="UpdateNotes" dbtype="ODBC" datasource="Notebook">
Update Notes
Set
ContactPerson="#Form.Person#",
ContactPhone="#Form.Phone#",
Notes="#Form.Note#"
Where
ID='#NR#'
</CFQUERY>
I use a MAX() query on the previous page to get the #NR# and then pass it to this cfm with submit.cfm?NR=#NR#.
If I use
<CFOUTPUT>
'#NR#'
</CFOUTPUT>
Is shows F1B6A550-547F-11D5-B2B0-00010270293C, which is the ID I want to update. The ID is an Autonumber field.
I've tried it with single quotes, double quotes, no quotes, same error. Any ideas?