Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
bchan
Parameters for PivotCache queries are not supported. You can trick it by changing the SQL and putting in the ?, but there's no access to a Parameter object so you can't change the prompt string. You can either roll your own as amo suggested or create the QueryTable and PivotTable separately. The QT can have a customize parameter and you can base the PT on that range. Refreshing the PT doesn't automatically refresh the QT, which stinks. -- Dick Kusleika MVP - Excel Excel Blog - Daily Dose of Excel www.dicks-blog.com "bchan" wrote in message ... I was able to make Excel pop-up a parameter dialogue box by creating a macro and changing the "SELECT ... " statement by adding the "WHERE field = ?" clause. However, it does not give a descriptive prompt, something like "Enter the branch code". In MS Query, it works something like this: "SELECT ... WHERE branch = [Enter the branch code]" -- bchan ------------------------------------------------------------------------ bchan's Profile: http://www.excelforum.com/member.php...fo&userid=8274 View this thread: http://www.excelforum.com/showthread...hreadid=270081 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Convert hard coded query criteria to Parameter Query | Excel Discussion (Misc queries) | |||
How to choose if I use a parameter or not in a parameter query | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) | |||
Macro for Parameter Query | Excel Programming | |||
Parameter Query executed from a Macro | Excel Programming |