The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Return all results where category equals this or this or this, MS Access db on a classic asp page using strSQL
Pluribus
post Aug 6 2014, 08:48 AM
Post #1


Member
***

Group: Members
Posts: 81
Joined: 6-February 09
Member No.: 7,737



Hello

Can someone point me in the right direction to working out the correct string for this query?

I have a column in my database named "Category". I want to return all results from this column where the category equals 123, abc and xyz.

I can do it with one category, I have never managed to get 3 categories to work.

This is the connection string I use currently:

CODE
strSQL = "SELECT * FROM Table1 WHERE category=abc ORDER BY ID DESC"


Is this possible?

Regards

Ian
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 5th June 2024 - 03:32 AM