<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Parameters in Excel external data queries</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Mon, 06 Feb 2012 18:39:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tim</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-72520</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 18 Jan 2012 17:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-72520</guid>
		<description>Torunn, why not create a view? This keeps your users off your tables, but brings all of the Excel parameter discussion here back into play.</description>
		<content:encoded><![CDATA[<p>Torunn, why not create a view? This keeps your users off your tables, but brings all of the Excel parameter discussion here back into play.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-71122</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Mon, 26 Dec 2011 19:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-71122</guid>
		<description>I need help..  when a week falls in two months I need a formula to figure out how many hours was in one month and how many hours was in the other month..  
Example:  Beginning week: 11/27/11  Ending week 12/3/11  Employee worked 0 hours on 11/27, 8 hours on 11/28, 9 hours on 11/29 9 on 11/30, 9 on 12/1, 8 on 12/2 and 4 on 12/3  now I need to know how many Reg hours and ot hours they had in the 1st month (Nov)  and how many reg hours and OT hours in the 2nd month (Dec) or what ever month it happens to be can some help me with fixing a spread sheet for this? I have to split this up for billing purposes...  

Thanks for any help you can give me..
Kim</description>
		<content:encoded><![CDATA[<p>I need help..  when a week falls in two months I need a formula to figure out how many hours was in one month and how many hours was in the other month..<br />
Example:  Beginning week: 11/27/11  Ending week 12/3/11  Employee worked 0 hours on 11/27, 8 hours on 11/28, 9 hours on 11/29 9 on 11/30, 9 on 12/1, 8 on 12/2 and 4 on 12/3  now I need to know how many Reg hours and ot hours they had in the 1st month (Nov)  and how many reg hours and OT hours in the 2nd month (Dec) or what ever month it happens to be can some help me with fixing a spread sheet for this? I have to split this up for billing purposes&#8230;  </p>
<p>Thanks for any help you can give me..<br />
Kim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torunn</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-67589</link>
		<dc:creator>Torunn</dc:creator>
		<pubDate>Wed, 02 Nov 2011 14:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-67589</guid>
		<description>&lt;p&gt;My problem has all to do with Ms SQL Server and Excel and parameters but I&#039;m adding a problem. I don&#039;t want the users to have access to my tables at all. To be totally sure my db is protected I want to access my database through a stored procedure and show the result in Excel - AND I want the user to be able to put in a value as a parameter to my procedure. I have tried to access the procedure through ODBC, but then it will not accept a parameter.&lt;/p&gt;
&lt;p&gt;Any ideas - anyone?&lt;/p&gt;
&lt;p&gt;Very grateful for all answers that can help me here&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>My problem has all to do with Ms SQL Server and Excel and parameters but I&#8217;m adding a problem. I don&#8217;t want the users to have access to my tables at all. To be totally sure my db is protected I want to access my database through a stored procedure and show the result in Excel &#8211; AND I want the user to be able to put in a value as a parameter to my procedure. I have tried to access the procedure through ODBC, but then it will not accept a parameter.</p>
<p>Any ideas &#8211; anyone?</p>
<p>Very grateful for all answers that can help me here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terri</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-67236</link>
		<dc:creator>Terri</dc:creator>
		<pubDate>Mon, 24 Oct 2011 18:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-67236</guid>
		<description>&lt;p&gt;I am using Excel 2007 doing a connection to Access.  Why is my Edit Query box inactive?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am using Excel 2007 doing a connection to Access.  Why is my Edit Query box inactive?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Junior</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-63547</link>
		<dc:creator>Junior</dc:creator>
		<pubDate>Fri, 13 May 2011 21:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-63547</guid>
		<description>&lt;p&gt;Hi,&lt;br&gt;
Congratulations for this post.&lt;br&gt;
I have one dynamic table and I am seeking SQL Server data with criteria of date.&lt;br&gt;
...&lt;br&gt;
WHERE (tblPrdTotaliz.TagTime&gt;=? And tblPrdTotaliz.TagTime&lt;=?)&lt;br&gt;
...&lt;br&gt;
I followed step by Step and worked. If I not close the file works, but when I saved the file and open again, asks for me enter the date again or the cell with the date.&lt;/p&gt;
&lt;p&gt;Have you seen this happen?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Congratulations for this post.<br />
I have one dynamic table and I am seeking SQL Server data with criteria of date.<br />
&#8230;<br />
WHERE (tblPrdTotaliz.TagTime&gt;=? And tblPrdTotaliz.TagTime&lt;=?)<br />
&#8230;<br />
I followed step by Step and worked. If I not close the file works, but when I saved the file and open again, asks for me enter the date again or the cell with the date.</p>
<p>Have you seen this happen?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-46722</link>
		<dc:creator>Rene</dc:creator>
		<pubDate>Wed, 09 Jun 2010 10:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-46722</guid>
		<description>&lt;p&gt;Hi&lt;br&gt;
Brilliant! I have tried this before and could not get it working.&lt;br&gt;
Thanks a mil.&lt;br&gt;
Rene&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi<br />
Brilliant! I have tried this before and could not get it working.<br />
Thanks a mil.<br />
Rene</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cort</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-46099</link>
		<dc:creator>Cort</dc:creator>
		<pubDate>Thu, 13 May 2010 20:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-46099</guid>
		<description>&lt;p&gt;I&#039;m working with dqy files and it&#039;s nice for end users cause they can just double click the file and open it. I have two questions:&lt;/p&gt;
&lt;p&gt;1) When first opening the query, there is a dialog box that pops up: &lt;/p&gt;
&lt;p&gt;&quot;Opening Query&lt;br&gt;
This file contains queries to external data.&lt;br&gt;
Queries are used to import external data into Excel, but queries can be designed to access confidential information and possibly make that information available for other users, or to perform other harmful actions.&lt;br&gt;
If you trust the source of this file, click Open.&quot;&lt;/p&gt;
&lt;p&gt;With Open and Cancel buttons. Any way to suppress this message and skip it?&lt;/p&gt;
&lt;p&gt;2) If I wanted to open a dqy file from a command prompt, can I send a parameter to it?&lt;/p&gt;
&lt;p&gt;Thanks!!!&lt;br&gt;
Cort&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m working with dqy files and it&#8217;s nice for end users cause they can just double click the file and open it. I have two questions:</p>
<p>1) When first opening the query, there is a dialog box that pops up: </p>
<p>&#8220;Opening Query<br />
This file contains queries to external data.<br />
Queries are used to import external data into Excel, but queries can be designed to access confidential information and possibly make that information available for other users, or to perform other harmful actions.<br />
If you trust the source of this file, click Open.&#8221;</p>
<p>With Open and Cancel buttons. Any way to suppress this message and skip it?</p>
<p>2) If I wanted to open a dqy file from a command prompt, can I send a parameter to it?</p>
<p>Thanks!!!<br />
Cort</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-45584</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 28 Apr 2010 15:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-45584</guid>
		<description>&lt;p&gt;&lt;a href=&quot;http://www.dailydoseofexcel.com/archives/2010/04/28/dynamic-columns-in-ms-query/&quot; rel=&quot;nofollow&quot;&gt;http://www.dailydoseofexcel.com/archives/2010/04/28/dynamic-columns-in-ms-query/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.dailydoseofexcel.com/archives/2010/04/28/dynamic-columns-in-ms-query-ii/&quot; rel=&quot;nofollow&quot;&gt;http://www.dailydoseofexcel.com/archives/2010/04/28/dynamic-columns-in-ms-query-ii/&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="http://www.dailydoseofexcel.com/archives/2010/04/28/dynamic-columns-in-ms-query/" rel="nofollow">http://www.dailydoseofexcel.com/archives/2010/04/28/dynamic-columns-in-ms-query/</a></p>
<p><a href="http://www.dailydoseofexcel.com/archives/2010/04/28/dynamic-columns-in-ms-query-ii/" rel="nofollow">http://www.dailydoseofexcel.com/archives/2010/04/28/dynamic-columns-in-ms-query-ii/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Weir</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-45548</link>
		<dc:creator>Jeff Weir</dc:creator>
		<pubDate>Tue, 27 Apr 2010 02:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-45548</guid>
		<description>&lt;p&gt;Hi Dick. That&#039;s what I&#039;m doing at the moment, which is working well enough...I just wanted to see if I could do this for the sake of it. Fazza over at the MR Excel board gave me some options, all requiring VBA code: &lt;/p&gt;
&lt;p&gt;1) Run one query - say just a small dataset returned - such as &quot;SELECT TOP 1 * FROM data&quot; to a worksheet, maybe (very) hidden. Then based on the last few returned headers, edit the SQL in the query you&#039;re really interested in.&lt;/p&gt;
&lt;p&gt;2) Or instead of a query table, use either ADOX to read the header names, or, and it might be simpler, plain old ADO to query the data - and again returning a small dataset if there is a lot of data - and loop through the fields collection, grab the last few headers and edit the SQL to suit.&lt;/p&gt;
&lt;p&gt;(I was naughty and cross-posted)&lt;/p&gt;
&lt;p&gt;So I&#039;ll probably call the SQL from VBA...just need to work out how when I get time to consult GOOGLE.&lt;/p&gt;
&lt;p&gt;Slight aside...when I refresh my query, and if someone else at work has the source file open, then for some strange reason the source file gets opened by my pc and then all the data gets populated into my destination book with screwed up formatting. But if the source file is closed, it works fine. MS query is pretty darn mysterious...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dick. That&#8217;s what I&#8217;m doing at the moment, which is working well enough&#8230;I just wanted to see if I could do this for the sake of it. Fazza over at the MR Excel board gave me some options, all requiring VBA code: </p>
<p>1) Run one query &#8211; say just a small dataset returned &#8211; such as &#8220;SELECT TOP 1 * FROM data&#8221; to a worksheet, maybe (very) hidden. Then based on the last few returned headers, edit the SQL in the query you&#8217;re really interested in.</p>
<p>2) Or instead of a query table, use either ADOX to read the header names, or, and it might be simpler, plain old ADO to query the data &#8211; and again returning a small dataset if there is a lot of data &#8211; and loop through the fields collection, grab the last few headers and edit the SQL to suit.</p>
<p>(I was naughty and cross-posted)</p>
<p>So I&#8217;ll probably call the SQL from VBA&#8230;just need to work out how when I get time to consult GOOGLE.</p>
<p>Slight aside&#8230;when I refresh my query, and if someone else at work has the source file open, then for some strange reason the source file gets opened by my pc and then all the data gets populated into my destination book with screwed up formatting. But if the source file is closed, it works fine. MS query is pretty darn mysterious&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/13/parameters-in-excel-external-data-queries/#comment-45545</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 27 Apr 2010 01:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=933#comment-45545</guid>
		<description>&lt;p&gt;Jeff: I don&#039;t think you can do it without changing the query every time.  I would put it on a separate sheet and use&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;SELECT * FROM &#039;Worksheet_Name$&#039;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;That way you&#039;ll get every column.  Then you could use a formula to get the data from the column you want.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jeff: I don&#8217;t think you can do it without changing the query every time.  I would put it on a separate sheet and use</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">SELECT * FROM &#8216;Worksheet_Name$&#8217;</div>
</div>
<p>That way you&#8217;ll get every column.  Then you could use a formula to get the data from the column you want.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

