Solved

Query on field with multiple criteria

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

860 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