Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expression error when using ListAppend

Status
Not open for further replies.

blues77

Programmer
Jun 11, 2002
230
CA
Hello,

I'm using the ListAppend function and am encountering an expression error (shown below). I'm hopeing someone can point out where I've made my mistake. Any and all help is greatly appreciated.

Code:
<CFQUERY DATASOURCE="#Request.MMSDataSource#" NAME="ESNQuery">
								 SELECT s.SerialNumber from saleitems s
									where s.VinSaleNumber = '#report_query.vinSaleNumber#'
									and (s.SKUnumber = '#report_query.SKUnumber#')
									and (s.SerialNumber NOT IN ('#ListChangeDelims(previousSerialNumbers, "','")#'))
									LIMIT 1
							  </CFQUERY>

							  <CFIF ESNQuery.RecordCount GT 0>
							  <TD VALIGN="top">
								 <CFOUTPUT QUERY="ESNQuery">
									<CFSET previousSerialNumbers = ListAppend(previousSerialNumbers, "#ESNQuery.SerialNumber#">
									#ESNQuery.SerialNumber#
								 </CFOUTPUT>
							  </TD>
							  <CFELSE>
								 <TD></TD>
						      </CFIF>


Here is the error that I am getting.

Problem occurred while parsing, previousSerialNumbers = ListAppend(previousSerialNumbers, "#ESNQuery.SerialNumber#
 
you're missing your end pren

<CFSET previousSerialNumbers = ListAppend(previousSerialNumbers, "#ESNQuery.SerialNumber#")>


We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top