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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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,221,904
Messages
6,162,743
Members
451,785
Latest member
DanielCorn

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