Link to home
Start Free TrialLog in
Avatar of earwig75
earwig75

asked on

Update multiple records from a list

I have a text field and some checkboxes. When the form is submitted the check boxes create a list. The field is called "selected". So, After the form is submitted I have a 2 fields, one is a list of numbers(selected)  like this 3,7,9,10 and a value from the text box "car",

The values from "Selected" are the IDs from each record i would like to update. So, if the boxes 5,6,7 were checked I want to update records with ID 5,6,7 with the value from the text box.

Could someone assist with this? I'd like to avoid having a query in a loop. Thank you.
ASKER CERTIFIED SOLUTION
Avatar of gdemaria
gdemaria
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of earwig75
earwig75

ASKER

Thank you, I don't know why I forgot about "IN". I did have to do it this way though: IN (<cfqueryparam value = "#form.SELECTED#" list="true" CFSQLType = "CF_SQL_BIGINT">)