Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract records from database

Status
Not open for further replies.

KennyRohan

Technical User
Apr 21, 2003
133
US
I have a database for state of New York. One field in the database is "County". I would like to extract only 8 specific counties from this database. Is there a good procedure available to do this? Thank you.
 
Create a query with your County field. Then in the criteria row under County put
In("County1","County2",etc.,"County8")
 
Depending on why you want to do this and if you want to do something similar again, I might create a table of counties with the single field [County] as the primary key. Add the "8 specific counties" and use the county table with your existing table. When you join the county tables, only those from the 8 will display.

You could also add all unique counties to the table and add a yes/no field for selecting specific counties.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top