Dear All
Please help - I have a variable called left_select that contains, for example, '5','9','2'. I have a query (ExistIntQ.InterestType) that contains a 5 and a 9. If the contents of ExistIntQ.InterestType are all in left_select then I do nothing. If there are items missing (the number 2 in this example) I want to insert details about 2 into my SQL database. If ExistIntQ.InterestType has items not included in left_select then I need to update my SQL with an end date. I have tried loads of variations on my syntax but am failing miserably eg:
<cfif ExistIntQ.PersonRef eq #form.pref# and #form.left_select# eq #ExistIntQ.InterestType#>
1 do nothing<br>
</cfif>
<cfif #ExistIntQ.PersonRef# eq #form.pref# and (#ExistIntQ.InterestType# contains #form.left_select# neq True)>
2 insert interest
</cfif>
Thanks in advance for any help offered
Liz
Please help - I have a variable called left_select that contains, for example, '5','9','2'. I have a query (ExistIntQ.InterestType) that contains a 5 and a 9. If the contents of ExistIntQ.InterestType are all in left_select then I do nothing. If there are items missing (the number 2 in this example) I want to insert details about 2 into my SQL database. If ExistIntQ.InterestType has items not included in left_select then I need to update my SQL with an end date. I have tried loads of variations on my syntax but am failing miserably eg:
<cfif ExistIntQ.PersonRef eq #form.pref# and #form.left_select# eq #ExistIntQ.InterestType#>
1 do nothing<br>
</cfif>
<cfif #ExistIntQ.PersonRef# eq #form.pref# and (#ExistIntQ.InterestType# contains #form.left_select# neq True)>
2 insert interest
</cfif>
Thanks in advance for any help offered
Liz