Question : Excel + Access Integration - Passing Parameters

One of my users has a question that I can't figure out.

She has been working in access to create a very complicated query/report. It works great in access and has 1 parameter.

What she would like to do now is create a pivot table in excel off of that data. Normally she just uses the PivotTable wizard, selects external data source, points to the access db/query, and she's off! But, it won't allow her to do this w/ the current query since it requires a parameter and returns an error "too few parameters specified" or something along those lines.

How can we work around this? She'd like to be able to simply put the parameter in a cell on the spreadsheet and have the query pull it from there. Any code would be greatly appreciated (I've tried googling this to no avail). Assume we have an access db named "test.mdb" and the query is "qry-test" and the parameter is "startdate".

Thanks a ton!

Answer : Excel + Access Integration - Passing Parameters

Is it too much data to return to a worksheet and base the pivot table off that?
Random Solutions  
 
programming4us programming4us