How to show specific items from a large table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a database table with about 4,500 entries (projects completed by our
firm). I need to print a list of about 25 specific jobs within this DB. How
do I accomplish this?
 
DPete14 said:
I have a database table with about 4,500 entries (projects completed by
our
firm). I need to print a list of about 25 specific jobs within this DB.
How do I accomplish this?

How are the "Jobs" identified; how can you tell Access which 25? Will
they always be the same 25 or will it change.

Think Query. How much do you know about Access and do you know what a
query is?
 
The jobs are identified by a unique job number (which is a field). I know
about queries, but I have not created them myself.
 
The jobs are identified by a unique job number (which is a field). I know
about queries, but I have not created them myself.

1. Make a new query in design view
2. Add your table
3. In the designer, drag the star from your table onto the grid.
4. Drag your unique job number field onto the next column in the grid.
5. uncheck the checkbox below the job number in the grid
6. in the column under the job number field, on the row that says
"Criteria", type something like this:

IN (a, b, c, d....)

Where a, b, c, d, etc are your 25 unique job numbers separated by commas.
If the job number field is a text field, then the job numbers you type will
need quotes:

IN ("a", "b", "c", "d", etc...)

7. You switch to "Datasheet View" to see the records it gets.
8. Don't forget to save your query.
9. Get yourself a copy of "Access xxx Developer's Handbook" by Sybex, where
xxx is your version.
10. Learn about "Parameter Queries" either from here, or that book, or
Access help. The nature of your question suggests that you will be doing
variations on this query, so it's nice to have one that's reusable for
different input values.
--
Peace & happy computing,

Mike Labosh, MCSD

Feed the children!
Save the whales!
Free the mallocs!
 
DPete14 said:
The jobs are identified by a unique job number (which is a field).

Do the numbers stay the same each time you need them or are they
different? How is Access to learn about the numbers if they change? How
often do they change? Who changes them?

Is there any order to the select group (consecutive, every 10th etc.?)

I will add, do you need to see all of them as a group or one at a time?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top