Criteria in a query

ravikode

New Member
Joined
Oct 10, 2003
Messages
27
Hi,

I wanted a selection Criteria in a query. So I typed "[Enter QuaterNumber: ]" in the query and it works fine for that. What should I do if I want to

* Get all the records from the same query.( I entered "*" but did not work.)

* Enter multiple parameters.

Thanks
Ravi
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Ravi

For the first quesion try this

Like "*" & [Enter QuaterNumber: ] & "*"

Can you explain the 2nd question further?
 
Upvote 0
Thankyou very much for your response.

Like "*" & [Enter QuaterNumber: ] & "*" works fine for the first question.

My second question was.. Enter multiple parameters.
Say I want to enter two QuaterNumbers. Example: 2,3
how can i get that.
 
Upvote 0
Are quarter numbers actually numbers in your table?

If they are you can't use the Like operator and you don't need single quotes.
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,121
Members
452,381
Latest member
Nova88

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