Excel Query Criteria

spg2112

Active Member
Joined
Feb 27, 2002
Messages
316
Hello all,

I'm using the MS query in Excel and instead of using the criteria filters in MS Query I'd rather use Excel combo boxes, drop downs etc. Is there a way to populate the criteria filters in MS query from a control box?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
If you use design mode to create or edit your query, you can include a parameter to be prompted for on refresh. You can then go to parameter options and link the parameter to a cell. You will have the option to select automaticcaly refresh when this cell changes. Use a combo box or data validation to populate this cell
 
Upvote 0
The only thing I see in parameter options is to change the name of the parameter. Am I looking in the right place?
 
Upvote 0
On 2002-04-26 07:56, spg2112 wrote:
The only thing I see in parameter options is to change the name of the parameter. Am I looking in the right place?

Here's an example of a parameter query that prompts for a value...

SELECT Table1.Customer
FROM Book2.Table1 Table1
WHERE (Table1.Call_Date=?)

You can then configure the external data range to accept a parameter value from a worksheet cell. See the Excel Help Index topics for...

1. Create a query that prompts for criteria
2. Use data from a cell on a worksheet as a parameter value
 
Upvote 0
After you return to Excel from MS query. right click on the date and choose parameters. A dialog box will open with the parameter options
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,185
Members
448,554
Latest member
Gleisner2

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