Solved

Query on field with multiple criteria

Posted on 2014-04-01
4
453 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

724 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