<?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: Find Due Date From X months in Access 2007</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 04:39:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/#comment-84010</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 18 Nov 2010 00:25:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-84010</guid>
		<description><![CDATA[Great !

Glad it worked.

(Disregard my last comment, I didn&#039;t see you last post until I submitted mine).]]></description>
		<content:encoded><![CDATA[<p>Great !</p>
<p>Glad it worked.</p>
<p>(Disregard my last comment, I didn&#8217;t see you last post until I submitted mine).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/#comment-84009</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 18 Nov 2010 00:23:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-84009</guid>
		<description><![CDATA[Can you post the complete error message ?

Also, when does the error occur ?]]></description>
		<content:encoded><![CDATA[<p>Can you post the complete error message ?</p>
<p>Also, when does the error occur ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desnyder2001</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/#comment-84008</link>
		<dc:creator>desnyder2001</dc:creator>
		<pubDate>Thu, 18 Nov 2010 00:19:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-84008</guid>
		<description><![CDATA[OK  I got it. *******  
I renamed the tables without any spaces i.e. Due_Date instead of Due Date and it worked.  I don&#039;t know why this is, but it worked.   Thank you so much.]]></description>
		<content:encoded><![CDATA[<p>OK  I got it. *******<br />
I renamed the tables without any spaces i.e. Due_Date instead of Due Date and it worked.  I don&#8217;t know why this is, but it worked.   Thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desnyder2001</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/#comment-84007</link>
		<dc:creator>desnyder2001</dc:creator>
		<pubDate>Thu, 18 Nov 2010 00:07:48 +0000</pubDate>
		<guid isPermaLink="false">#comment-84007</guid>
		<description><![CDATA[******  I just put your code in a query and it works.  But I want it to work in the Form...  We are getting close.  Thank you for your help, I am very excited about getting this done.]]></description>
		<content:encoded><![CDATA[<p>******  I just put your code in a query and it works.  But I want it to work in the Form&#8230;  We are getting close.  Thank you for your help, I am very excited about getting this done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desnyder2001</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/#comment-84005</link>
		<dc:creator>desnyder2001</dc:creator>
		<pubDate>Wed, 17 Nov 2010 23:52:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-84005</guid>
		<description><![CDATA[sounds like we are on the right track,  when I put the code  [Due Date] = DateAdd(”m”, [Recurrence], [Date Completed]) in the &quot;After Update&quot; code builder, it gives me a run time error.  Any thoughts?.  Also just so you know there is nothing else in the database that I am trying this on.  I have a test database with only those three fields in the table.  The (Date Completed) is a date/time field, the (Recurrence) is a Number field and the (Due Date) is a date/time field.  Not sure if this matters.]]></description>
		<content:encoded><![CDATA[<p>sounds like we are on the right track,  when I put the code  [Due Date] = DateAdd(”m”, [Recurrence], [Date Completed]) in the &#8220;After Update&#8221; code builder, it gives me a run time error.  Any thoughts?.  Also just so you know there is nothing else in the database that I am trying this on.  I have a test database with only those three fields in the table.  The (Date Completed) is a date/time field, the (Recurrence) is a Number field and the (Due Date) is a date/time field.  Not sure if this matters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/#comment-83995</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 17 Nov 2010 20:10:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-83995</guid>
		<description><![CDATA[You could use the AfterUpdate trigger.

In design mode (right click on the form and select &#039;design View&#039;), click on the [Recurrence] field and in the Property Sheet select the &#039;event&#039; tab, then click on the &quot;After Update&quot; event and click on the &quot;...&quot; button to the right, and select &quot;Code Builder&quot;.

Write this code inside the Recurrence_AfterUpdate procedure created:

&lt;pre&gt; [Due Date] = DateAdd(&quot;m&quot;, [Recurrence], [Date Completed])&lt;/pre&gt;

Save your work.

This will calculate the due date every time you modify the Recurrence field in the form.

To make sure the calculation is performed only when valid data exists in both fields (date completed and recurrence) you can add some validations:

&lt;pre&gt;If [Date Completed] &lt;&gt; &quot;&quot; And [Recurrence] &lt;&gt; &quot;&quot; Then
    [Due Date] = DateAdd(&quot;m&quot;, [Recurrence], [Date Completed])
End If&lt;/pre&gt;

You might want to add this same code to the AfterUpdate event of the &#039;date completed&#039; field, so the due date is recalculated when any of these two fields is modified.]]></description>
		<content:encoded><![CDATA[<p>You could use the AfterUpdate trigger.</p>
<p>In design mode (right click on the form and select &#8216;design View&#8217;), click on the [Recurrence] field and in the Property Sheet select the &#8216;event&#8217; tab, then click on the &#8220;After Update&#8221; event and click on the &#8220;&#8230;&#8221; button to the right, and select &#8220;Code Builder&#8221;.</p>
<p>Write this code inside the Recurrence_AfterUpdate procedure created:</p>
<pre> [Due Date] = DateAdd("m", [Recurrence], [Date Completed])</pre>
<p>Save your work.</p>
<p>This will calculate the due date every time you modify the Recurrence field in the form.</p>
<p>To make sure the calculation is performed only when valid data exists in both fields (date completed and recurrence) you can add some validations:</p>
<pre>If [Date Completed] &lt;&gt; "" And [Recurrence] &lt;&gt; "" Then
    [Due Date] = DateAdd("m", [Recurrence], [Date Completed])
End If</pre>
<p>You might want to add this same code to the AfterUpdate event of the &#8216;date completed&#8217; field, so the due date is recalculated when any of these two fields is modified.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desnyder2001</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/#comment-83987</link>
		<dc:creator>desnyder2001</dc:creator>
		<pubDate>Wed, 17 Nov 2010 18:39:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-83987</guid>
		<description><![CDATA[I am working on the database right now.  Again, I am a very novice user.  I am in the military and trying to track the training of some of my troops.  I would like to input the information in my form and have it calculate the due date and store that information in the table.  I will then create a query to give me a list of all people that are within 30 days of the due date so they can start working on the training.   Thanks for your quick response.  Please help.]]></description>
		<content:encoded><![CDATA[<p>I am working on the database right now.  Again, I am a very novice user.  I am in the military and trying to track the training of some of my troops.  I would like to input the information in my form and have it calculate the due date and store that information in the table.  I will then create a query to give me a list of all people that are within 30 days of the due date so they can start working on the training.   Thanks for your quick response.  Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/#comment-83978</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 17 Nov 2010 15:11:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-83978</guid>
		<description><![CDATA[If you want to update the field for all the existing records, you would need to create a query with the UPDATE statement mentioned above.

If you want to update it automatically when new records are added, then you will need to modify the entry form to do the calculation when some event occurs.

Let us know how and when you want to do it, and we might be able to provide more help.]]></description>
		<content:encoded><![CDATA[<p>If you want to update the field for all the existing records, you would need to create a query with the UPDATE statement mentioned above.</p>
<p>If you want to update it automatically when new records are added, then you will need to modify the entry form to do the calculation when some event occurs.</p>
<p>Let us know how and when you want to do it, and we might be able to provide more help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desnyder2001</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/find-due-date-from-x-months/#comment-83951</link>
		<dc:creator>desnyder2001</dc:creator>
		<pubDate>Wed, 17 Nov 2010 04:11:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-83951</guid>
		<description><![CDATA[I still don&#039;t understand where to put this code to update the field in the table]]></description>
		<content:encoded><![CDATA[<p>I still don&#8217;t understand where to put this code to update the field in the table</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/9 queries in 0.011 seconds using memcached
Object Caching 380/383 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 05:25:02 -->