Parameters for database connections

LraeSinned

New Member
Joined
Aug 12, 2008
Messages
47
I have several worksheets using external data connections with parameters and am pretty comfortable working with this. I'm trying to do something now that I thought I had done before (2003?) but not having any luck. I'm probably close but not quite on target.

The dataset I want in my table has 27k records but if I filter this by a short list of values I could narrow the resultset to about 3000 records.

I already have parameters filtering on date and serial number, now want to filter on product code. I'm using MS Query, and want to have a filter set up as:

In ( [p1],[p2],[p3] )

If I enter this using an incorrect format I do get a syntax error, so MSQuery is evaluating the expression.

When I try this now I get an unhelpful " -10920 " and haven't found anything useful on the internet for this error message with MS Query.

Thoughts?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,223,099
Messages
6,170,112
Members
452,302
Latest member
TaMere

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