What about removing the "variables." scope?
John McKown, VP Business Services
Delaware.Net, Inc.
30 Old Rudnick Lane, Suite 200 Dover, DE 19901
email: [EMAIL PROTECTED]
phone: 302-736-5515
fax: 302-736-5945
icq: 1495432
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 08, 2001 3:02 PM
> To: CF-Talk
> Subject: Re: Query confusion - CF not recognising query name
>
>
> I just took out the ---- and
> #PreserveSingleQuotes(variables.whereList)# ---
> set some variables and it worked fine for me. What's in the wherelist??
> It ran fine for me. cf 4.01 on Windows 2000 server.
>
> Jeff Craig
>
> <cfset variables.peopletable = "users">
> <cfset variables.idlist = "1,2,3,4,5,6">
> <cfset form.orderby = "email">
>
> <cfquery name="getPeopleInfo" datasource="voluma" blockfactor=100>
> select ID
> from #variables.peopleTable# (nolock)
> where ID in (#variables.IDList#)
> order by #form.OrderBy#
> </cfquery>
> <cfset variables.IDCount=getPeopleInfo.RecordCount>
> <cfoutput>#variables.idcount#</cfoutput>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists