Ask a Question related to Coldfusion Database Access, Design and Development.
-
Shane930 #1
Recordset filter question for MySQL
Hi I am looking to filter a query with three conditions and can not find the
correct syntax. I am looking to search on a type of vehicle then a span of
years.
Thanks
Shane
Here is my SQL:
SELECT *
FROM saa.vehicle_ad
WHERE vehicle_type = #FORM.vehicle_type# AND veh_year<= #FORM.veh_yearup# AND
veh_year<= #FORM.veh_yeardown#
ORDER BY vehicle_type ASC
Shane930 Guest
-
XML with filter like Where in MySQL
Hello, I use dynamic generated XML file (from php+mysql), I'd like filter my results using DataGrid. How can I prepare query like: ... -
Can't not choose field for filter in recordset dialogbox
Dear All, I deveop website by DreamweaverMX. I have some problem with dynamic page for ASP when I click binding-->recordset if I choose field for... -
Recordset Filter question - Nested repeat region
Hi, I am using Tom Steepers Tutorial to nest a recordset found here.... http://www.dmxzone.com/ShowDetail.asp?NewsId=394 Does anyone know... -
Filter recordset by item quantity...?
Hi - using APS/Access/VB script. Have a shopping cart table displaying all products that are bought from my webshop. OrderID, Product name and... -
testing for a null Date in the Filter property of a RecordSet object?
Hello, I am new to using the filter property. When I try publishDate = '' I get a type mismatch error. Any ideas? Thanks Rich -
-
paross1 #3
Re: Recordset filter question for MySQL
I noticed that you were checkingto see if your veh_year parameter was <b>less
than or equal to</b> both values, it this what you intended? Also, you might
try BETWEEN...
Something like this?
SELECT *
FROM saa.vehicle_ad
WHERE vehicle_type = #FORM.vehicle_type#
AND veh_year BETWEEN #FORM.veh_yearup# AND #FORM.veh_yeardown#
ORDER BY vehicle_type ASC
Phil
paross1 Guest
-
Shane930 #4
Re: Recordset filter question for MySQL
Hi Phil, thanks for the reply. I did get it worked out later yesterday. It
seems I needed to put the second condition in the WHERE clause on its own line
like you have above and it processes like it should.
Thank you for your help.
Shane
Shane930 Guest



Reply With Quote

