Form Controls for SQL WHERE clause

toci1980

New Member
Joined
Feb 24, 2016
Messages
22
Hello folks,
I know that one of the solutions for this is to use Power Pivot and Parameters but my column for filtering consists of alphanumerical characters so this option is not available and it is too slow.
Therefore, I have created connection to teradata with SQL code and in WHERE clause I have some conditions.
Now, my question is: is it possible to build/create with Form Controls/ActiveX Controls something like a drop down list where on selected item it would import new set of data from teradata.

Picture below.

Thank you in advance.

excel sql conntrol.PNG
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
hello

teradata is unknown to me. regardless, Excel does provide parameterised queries. doesn't need any programming. just set it up to auto-refresh on change of the input cell - no code, no formulas.

google might be best. here is an old example, Parameters in Excel external data queries – Daily Dose of Excel

should work on all Excel since ~1995. there will be different ways to get into this in newer Excel versions - i set up via ALT-D-D-N & follow the wizard. Editing the SQL by changing to a ? also gets it done

HTH
 
Upvote 0

Forum statistics

Threads
1,215,522
Messages
6,125,312
Members
449,218
Latest member
Excel Master

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