Ask a Question related to Macromedia ColdFusion, Design and Development.
-
Species_Evolution #1
form field list and SQL IN
I'm writing a query that creates a .csv file dependant on the results of a
search. The search is working fine with the exception of the IN statement which
doesn't like CF
The user has the option of selecting multiple age ranges
('u_24','25-34','35-44','45-54','55+').
The form returns these as a list eg. u_24,25-34,55+
I'm changing the list using <cfset form.age = ListChangeDelims(#form.age#,
"','", ",")>
Which when output looks fine, but refusees to work with the SQL.
Any ideas?
Species_Evolution Guest
-
Binding form field to table field.
I have a form and a table to which I've added a new field. The form field is currently unbounded. When I try to bind the field using the data... -
Searching a column containing a list against a form list
I have a form that allows users to select multiple items from a list. form.hobbies = 1,5,3,6,8,2 (from a table pullup) I want to be able to... -
Defined text field in form -> subject field in e-mail
Hi, I have a form on my web site which users send to me by mailto-function. I would like the text they write in a particular text field to... -
copy and paste form RTF document into field in asp form cause it to bypass field length and javascript validation - how to overcome?
I have a web form with several fields. If I copy & paste from a RTF document into a field, the javascript validation and field length are bypassed... -
Dynamic List based on form field data
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.500 / Virus Database: 298 -... -
The ScareCrow #2
Re: form field list and SQL IN
Not sure why your changing the delimiter, but this is how I do it
Where yourColumn IN (#ListQualify(form.age, " ' ")#)
Note space inserted so you can see what is there.
Ken
The ScareCrow Guest
-
vkunirs #3
Re: form field list and SQL IN
Hi
can you post your generater query here.?
i think if you are separating the values with "," then it will works fine...may the last comma may give error.
vkunirs Guest
-
Species_Evolution #4
Re: form field list and SQL IN
Ken,
Works fine, thanks for the help.
Spencer
Species_Evolution Guest



Reply With Quote

