I am having a problem updating a record field in the db. I have a field with a comma delimited list of id numbers. Is there a way to identify a record and remove a single id from the list in one statment. Similiar to this:
<cfquery name="recupdate" datasource="#datasource#">
Update reports Set archived = '#archlistnew#',
hideview = ListDeleteAt(hideview,ListFindNoCase(hideview,userid,","
,","
Where reportnumber= #findrecs.reportnumber#
</cfquery>
The text in red is where my problem lies. I get an error stating there is an undefined function. Not sure if sql supports that function or not, but that is what I need to accomplish.
Chris Scott
The Whole Computer Medical Systems
<cfquery name="recupdate" datasource="#datasource#">
Update reports Set archived = '#archlistnew#',
hideview = ListDeleteAt(hideview,ListFindNoCase(hideview,userid,","
Where reportnumber= #findrecs.reportnumber#
</cfquery>
The text in red is where my problem lies. I get an error stating there is an undefined function. Not sure if sql supports that function or not, but that is what I need to accomplish.
Chris Scott
The Whole Computer Medical Systems