 




<?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: MS Access 2007 Date Query Question</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: smidkiff</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/#comment-96447</link>
		<dc:creator>smidkiff</dc:creator>
		<pubDate>Mon, 12 Sep 2011 11:51:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-96447</guid>
		<description><![CDATA[No problem.  I really appreciate the input. Your input gave me the results I was hoping for.]]></description>
		<content:encoded><![CDATA[<p>No problem.  I really appreciate the input. Your input gave me the results I was hoping for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: orangehat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/#comment-96433</link>
		<dc:creator>orangehat</dc:creator>
		<pubDate>Mon, 12 Sep 2011 00:46:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-96433</guid>
		<description><![CDATA[sorry or the -52 error. (-54) I don&#039;t know what I thinking when I did that.]]></description>
		<content:encoded><![CDATA[<p>sorry or the -52 error. (-54) I don&#8217;t know what I thinking when I did that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smidkiff</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/#comment-96259</link>
		<dc:creator>smidkiff</dc:creator>
		<pubDate>Wed, 07 Sep 2011 12:07:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-96259</guid>
		<description><![CDATA[I had already made the correction for -54 vice -52.  I appreciate all the help.]]></description>
		<content:encoded><![CDATA[<p>I had already made the correction for -54 vice -52.  I appreciate all the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tlsanders1</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/#comment-96223</link>
		<dc:creator>tlsanders1</dc:creator>
		<pubDate>Tue, 06 Sep 2011 20:19:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-96223</guid>
		<description><![CDATA[And I think you want -54 for 4 1/2 years instead of -52.]]></description>
		<content:encoded><![CDATA[<p>And I think you want -54 for 4 1/2 years instead of -52.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smidkiff</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/#comment-96221</link>
		<dc:creator>smidkiff</dc:creator>
		<pubDate>Tue, 06 Sep 2011 18:51:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-96221</guid>
		<description><![CDATA[Thanks.  I appreciate the response.  I&#039;ll take a look at that.]]></description>
		<content:encoded><![CDATA[<p>Thanks.  I appreciate the response.  I&#8217;ll take a look at that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/#comment-96220</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Tue, 06 Sep 2011 17:34:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-96220</guid>
		<description><![CDATA[&quot;&lt;i&gt;So, if the user inputs a specific date, (i.e. Sep 2011)&lt;/i&gt;&quot;

&quot;Sep 2011&quot; is not a specific date.  It represents a month.

To be able to compare this kind of data to a date field you need to convert the entered data into a date format.  You will probably need to concatenate a day, and the convert the string to a date.

Take a look at the &lt;a href=&quot;http://office.microsoft.com/en-us/access-help/datevalue-function-HA001228814.aspx?CTT=3&quot;&gt;DateValue&lt;/a&gt; and &lt;a href=&quot;http://office.microsoft.com/en-us/access-help/dateserial-function-HA001228813.aspx&quot;&gt;DateSerial&lt;/a&gt; functions.]]></description>
		<content:encoded><![CDATA[<p>&#8220;<i>So, if the user inputs a specific date, (i.e. Sep 2011)</i>&#8221;</p>
<p>&#8220;Sep 2011&#8243; is not a specific date.  It represents a month.</p>
<p>To be able to compare this kind of data to a date field you need to convert the entered data into a date format.  You will probably need to concatenate a day, and the convert the string to a date.</p>
<p>Take a look at the <a href="http://office.microsoft.com/en-us/access-help/datevalue-function-HA001228814.aspx?CTT=3">DateValue</a> and <a href="http://office.microsoft.com/en-us/access-help/dateserial-function-HA001228813.aspx">DateSerial</a> functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smidkiff</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/#comment-96211</link>
		<dc:creator>smidkiff</dc:creator>
		<pubDate>Tue, 06 Sep 2011 14:01:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-96211</guid>
		<description><![CDATA[Thanks for the response.  This patrially worked.  When I ran the query without specifying a date per your instructions it reruned the correct date for the field.  If I tried entering a month and year it returned nothing.  So, if the user inputs a specific date, (i.e. Sep 2011) you get 0 returns eventhough there are numerous records that are 4 1/2 years older than that date.  If I don&#039;t enter any date I get the entire table returned (600+ records) with the appropriate date listed (i.e. the date field + 4 1/2 years).

How can I format the criteria the say give me the dates that are 54 months or older than the date entered?]]></description>
		<content:encoded><![CDATA[<p>Thanks for the response.  This patrially worked.  When I ran the query without specifying a date per your instructions it reruned the correct date for the field.  If I tried entering a month and year it returned nothing.  So, if the user inputs a specific date, (i.e. Sep 2011) you get 0 returns eventhough there are numerous records that are 4 1/2 years older than that date.  If I don&#8217;t enter any date I get the entire table returned (600+ records) with the appropriate date listed (i.e. the date field + 4 1/2 years).</p>
<p>How can I format the criteria the say give me the dates that are 54 months or older than the date entered?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: orangehat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ms-access-2007-date-query-question/#comment-96115</link>
		<dc:creator>orangehat</dc:creator>
		<pubDate>Sat, 03 Sep 2011 02:43:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-96115</guid>
		<description><![CDATA[typo. I retyped it with errors. take out the periods.
&gt;DateAdd(&quot;m&quot;,-52,[Enter date IE June 2011])]]></description>
		<content:encoded><![CDATA[<p>typo. I retyped it with errors. take out the periods.<br />
&gt;DateAdd(&#8220;m&#8221;,-52,[Enter date IE June 2011])</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.013 seconds using memcached
Object Caching 367/368 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 02:21:06 -->