Perhaps I should have gone into more detail myself.
So there are two different scenarios. The first is to use the MS query wizard, the second is to use Excel Reports out of GP.
I have used the MS query wizard, connect to GP as the data source, created criteria, and then gone through the data > connection > properties > parameters windows to create parameters. So it allows me to pass parameters, which is what I want.
The first problem is, I have to hand recode the query statements because the MS query wizard doesn't pull in the GP objects correctly. E.g. MS query wizard wants to bring in Accounts.Account Description which needs to be formatted as Accounts.[Account Description] in order to work. And then there's some connection string changes I'd like to make so that it can be more user friendly.
The second problem is, I have to create a lot of reports. The time involved may or may not be acceptable to the users.
So in the second scenario, I use the Excel Reports out of GP. The column names come in properly, the connection string is more user friendly, and there are hundreds of reports out of the box. So that's all positive.
The problem is, when I go to data > connection > properties > parameters is greyed out. Theoretically, the OLEDB data source supports parameterized SQL statements, but I am not getting them to work in this scenario.
Here is my where clause: WHERE (Accounts.Active='Yes') AND (Accounts.Segment4=?) Works fine in queries that use ODBC but its not so simple to just copy & paste into queries that use OLEDB, and whatever additional steps are required, or supported, for Excel Reports with GP are currently unknown to me.
I am not sure if this approach will be acceptable from a business/efficiency standpoint, either, but I'd like to prove to myself what the technical capabilities are.
So... that's a lot to read. I'm hopeful that if someone has had success with parameterized queries and OLEDB data sources (preferably applied to the Excel Reports tool in GP) they can provide some insight.