I'm assuming you mean in SQL. You can use the IN operator:
<cfquery name="Getfloor" datasource="inventory">
SELECT * FROM inventory
where floor in ('#trim(form.floor3)#','#trim(form.floor4)#')
</cfquery>
> -----Original Message-----
> From: Orlini, Robert [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 17, 2006 12:31 PM
> To: CF-Talk
> Subject: Search two values in one field
>
> How do I implement a search of two different values in one field?
>
> I want to search for floors 3 and 4 in the field named
> "floor" and display a report. Then html form uses checkboxes
> for each floor.
>
> Here is my previous search statement with one floor per
> search; how can I modify it? Thanks!
>
> <cfquery name="Getfloor" datasource="inventory">
> SELECT * FROM inventory where 0 = 0
>
> <CFIF IsDefined("FORM.floor") and form.floor NEQ "">
> And floor = '#trim(form.floor)#'
> </CFIF>
> </cfquery>
[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in
error, please immediately contact the sender and destroy the material in its
entirety, whether in electronic or hard copy format. Thank you. A2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229795
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54