Solved

Query on field with multiple criteria

Posted on 2014-04-01
4
449 Views
Last Modified: 2014-04-01
I have a table with a field that is a lookup to a table listing possible categories in which I can place a student.  I'd like to perform a query that includes all records for which a certain category ("Silver Creek") is selected.  The field type is number and has this under the lookup:

SELECT [T_Category].[ID], [T_Category].[Category] FROM T_Category ORDER BY [Category];

The bound column is 1 (the index/unique ID) and the column count is 2.

Any help is greatly appreciated.
0
Comment
Question by:BBlu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 350 total points
ID: 39971264
You should add table with categories to your query. Look at sample
DBcats.accdb
0
 

Author Comment

by:BBlu
ID: 39971354
Thanks, Ace. I see that you have a relationsip set up as one (Category) to many (students).  If a student can be in more than one category, just that change things?
0
 

Author Comment

by:BBlu
ID: 39971424
Got it!  That worked, Ace! Thanks.
0
 

Author Closing Comment

by:BBlu
ID: 39971425
Thanks, Ace!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question