Query Help

Dr_Worm

Board Regular
Joined
Jul 28, 2003
Messages
103
Hi,

I have been asked to print reports with 4 – 10 records. I need to create a query that can select records; 1450, 1587, 2190, 4237,… or
2548, 2654, 2655, 2656, 2660, 2700, 2702 o_O
I’ve tried everything I can think of, and I either get all records or none.

Any help will be much appreciated.

Dr Worm, (But you can call me Mr Worm :LOL: )
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Dr, or sir :)

I'm not entirely sure that I understand your question. What are the numbers 1450, 1587, etc that you refer to? Are these key values? If you want to retrieve all the records with a key value of the numbers you posted just use this as your criteria:-

In(1450,1587,2190,4237,2548,2654,2655,2656,2660,2700,2702)

Is that what you want?
 
Upvote 0
Why don't you but those numbers in the criteria? Or else I'm like DK I don't understand the question.

In the query on the criteria line you would enter
1450 or 1587 or 2190 or 4237 or 2548 or 2654 or 2655 or 2656 or 2660 or 2700 or 2702

HTH
texasalynn
 
Upvote 0

Forum statistics

Threads
1,221,574
Messages
6,160,602
Members
451,657
Latest member
Ang24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top