Hello.
I am having some problems creating an SQL query to do exactly what I want. Say the table is about widgets, I want to query only widgets available in both blue and red. If I just do WHERE Color = 'Red' or Color = 'Blue', it will get everything in either color. So how can I make it only return results that match both criteria? I could write some code to get around this, but it would mess up the recordset page size and recordset total records. So can I achieve this with just the SQL statement? Thanks.
I am having some problems creating an SQL query to do exactly what I want. Say the table is about widgets, I want to query only widgets available in both blue and red. If I just do WHERE Color = 'Red' or Color = 'Blue', it will get everything in either color. So how can I make it only return results that match both criteria? I could write some code to get around this, but it would mess up the recordset page size and recordset total records. So can I achieve this with just the SQL statement? Thanks.