Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Parameters

I'm creating an MS Query using SQL and am trying to find
out if there is a way around the limitation of not being
able to use parameters [ ] in the query if it cannot be
represented graphically, as excel states it. The Problem
is that the SQL query needs to have multiple outer joins
and excel states that a query with multiple outer joins
cannot be represented graphically, and in turn parameters
cannot be used in a MS Query that cannot be represented
graphically. A catch 22. Any ideas or workarounds?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Excel Parameters

Dan

You can add the programmatically (I think - I've never tried it with outer
joins). See here

http://www.dicks-clicks.com/excel/ExternalData6.htm

Near the bottom is the VBA code to add a parameter.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Dan" wrote in message
...
I'm creating an MS Query using SQL and am trying to find
out if there is a way around the limitation of not being
able to use parameters [ ] in the query if it cannot be
represented graphically, as excel states it. The Problem
is that the SQL query needs to have multiple outer joins
and excel states that a query with multiple outer joins
cannot be represented graphically, and in turn parameters
cannot be used in a MS Query that cannot be represented
graphically. A catch 22. Any ideas or workarounds?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Excel Parameters

Workaround: create a stored procedure that accepts the parameters you
want to pass.

BTW are you sure you *do* need multiple outer joins? I don't wish to
question your judgement, it's just from experience that often when I
start out with more than one outer join I find I can get away with
inner joins and just one outer join. Might be worth a quick double
check if it's causing you grief.

--

"Dan" wrote in message ...
I'm creating an MS Query using SQL and am trying to find
out if there is a way around the limitation of not being
able to use parameters [ ] in the query if it cannot be
represented graphically, as excel states it. The Problem
is that the SQL query needs to have multiple outer joins
and excel states that a query with multiple outer joins
cannot be represented graphically, and in turn parameters
cannot be used in a MS Query that cannot be represented
graphically. A catch 22. Any ideas or workarounds?

Reply
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
.bat file in Excel with parameters Ashly A K Excel Discussion (Misc queries) 5 June 14th 07 05:44 PM
Use of Parameters in Excel sarjak Excel Discussion (Misc queries) 7 February 1st 06 06:42 PM
Parameters in Excel Brandon Williams Excel Discussion (Misc queries) 3 October 18th 05 01:56 PM
Excel Parameters??? Telly Massaras Excel Programming 7 December 18th 03 07:06 PM
Excel ADO Connectstring parameters Jeff[_16_] Excel Programming 0 July 8th 03 05:44 PM


All times are GMT +1. The time now is 02:22 PM.

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

About Us

"It's about Microsoft Excel"