LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Parameter queries in Excel 2007

I'm trying to create new parameter queries in Excel 2007 and getting "No
value given for one or more required parameters" errors. I've done this a
million times in office xp, but not 07.

I'm creating a query table with the following non parameterized SQL to start:
SELECT * FROM BusIntraday WHERE (BusinessDate = '1/22/2008')

I get my data in a new fancy Excel 2007 data table.

I'm then programatically changing the SQL via the following VBA:
Dim qt As QueryTable
Set qt = Me.Range("Source_FXIntraday").ListObject.QueryTabl e
qt.CommandText = "SELECT * FROM BusIntraday WHERE (BusinessDate = ?)"

<note, i am not refreshing

After that, i am able to right-click on the fancy data table, select
"Table", select "Parameters", and designate the cell i want to pull my
business date from.

When i try to refresh after that, i get the error message.

I can do this in officexp/2003.

I can do this with MSQuery, but in 2007 the resulting data table created
using MSQuery lacks the property whereby it expands and contracts derivative
formulas to the right of the data as the results of the query expand and
contract (i get "holes" in the column where formulas aren't extended when the
query table data extends).

I can't find anything on the internet that is helping me.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 queries summerLove Excel Discussion (Misc queries) 0 August 10th 07 02:36 PM
How to choose if I use a parameter or not in a parameter query Arnaud Excel Discussion (Misc queries) 0 March 8th 07 01:19 PM
2007 office Excel link Access Queries Donica Excel Worksheet Functions 0 February 17th 07 04:20 AM
MS query--can it handle parameter queries from Access? Dave F Excel Discussion (Misc queries) 0 September 13th 06 02:41 PM
Where can I learn how to create parameter queries in Excel? Mark Excel Discussion (Misc queries) 1 January 23rd 06 02:31 PM


All times are GMT +1. The time now is 06:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"