Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Query on field with multiple criteria

Posted on 2014-04-01
4
Medium Priority
?
456 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 1400 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

618 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