<?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: How do I keep the original value of a field in Access 2010?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-keep-the-original-value-of-a-field/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-keep-the-original-value-of-a-field/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Jun 2013 05:59:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-keep-the-original-value-of-a-field/#comment-84425</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 26 Nov 2010 14:40:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-84425</guid>
		<description><![CDATA[Vostro123, as mentioned above, if you don&#039;t have an additional field for the original price and you just need the original price and the current one, you should add that column.

How to do that ?

Right-click on the name of he table and click on &#039;Design View&#039;.  You can add the new column there.

Then you have to remove the query that is updating the original price, you don&#039;t need it.

You need to modify your entry form to store the value entered in the &#039;price&#039; field into the original_price column too, when new records are inserted.

How to do it ?

You can use the after insert event of the form:

-Right-click on your form and select &#039;Design View&#039;
-In the property sheet select the &#039;Event&#039; tab
-To the right of the &#039;After Insert&#039; event click on the &quot;...&quot; button and select &#039;Code Builder&#039;
-Write a code similar to this (assuming that price is the name of the price field):
&lt;pre&gt;Private Sub Form_AfterInsert()
original_price = price
End Sub&lt;/pre&gt;

This should be enough to store the original price.

Let us know how it goes.]]></description>
		<content:encoded><![CDATA[<p>Vostro123, as mentioned above, if you don&#8217;t have an additional field for the original price and you just need the original price and the current one, you should add that column.</p>
<p>How to do that ?</p>
<p>Right-click on the name of he table and click on &#8216;Design View&#8217;.  You can add the new column there.</p>
<p>Then you have to remove the query that is updating the original price, you don&#8217;t need it.</p>
<p>You need to modify your entry form to store the value entered in the &#8216;price&#8217; field into the original_price column too, when new records are inserted.</p>
<p>How to do it ?</p>
<p>You can use the after insert event of the form:</p>
<p>-Right-click on your form and select &#8216;Design View&#8217;<br />
-In the property sheet select the &#8216;Event&#8217; tab<br />
-To the right of the &#8216;After Insert&#8217; event click on the &#8220;&#8230;&#8221; button and select &#8216;Code Builder&#8217;<br />
-Write a code similar to this (assuming that price is the name of the price field):</p>
<pre>Private Sub Form_AfterInsert()
original_price = price
End Sub</pre>
<p>This should be enough to store the original price.</p>
<p>Let us know how it goes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-keep-the-original-value-of-a-field/#comment-84417</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 26 Nov 2010 10:20:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-84417</guid>
		<description><![CDATA[Unless you only want OriginalPrice and CurrentPrice, it sounds like you might need to create a related table to keep historical price changes by date. Adding related tables is one of the fundamental advantages of &quot;relational databases&quot;.

For basic OriginalPrice and CurrentPrice, just adding the appropriate column should be enough. The two values would start out the same. As time went by, only CurrentPrice should ever be changed.

Tom]]></description>
		<content:encoded><![CDATA[<p>Unless you only want OriginalPrice and CurrentPrice, it sounds like you might need to create a related table to keep historical price changes by date. Adding related tables is one of the fundamental advantages of &#8220;relational databases&#8221;.</p>
<p>For basic OriginalPrice and CurrentPrice, just adding the appropriate column should be enough. The two values would start out the same. As time went by, only CurrentPrice should ever be changed.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vostro123</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-keep-the-original-value-of-a-field/#comment-84401</link>
		<dc:creator>vostro123</dc:creator>
		<pubDate>Fri, 26 Nov 2010 00:59:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-84401</guid>
		<description><![CDATA[Thanks for that,

The problem I am having is that I have a &#039;price&#039; field and a form which allows users to add an item in an inventory.

I&#039;ve created a query which stores the &#039;old&#039; price as the prices change- but as they change more than once, it writes over the orignial.  What i really need to do is somehow copy that 1st price without it updating as the prices change - as you say, &#039;assign the original value&#039;.

Any ideas on how do to that?]]></description>
		<content:encoded><![CDATA[<p>Thanks for that,</p>
<p>The problem I am having is that I have a &#8216;price&#8217; field and a form which allows users to add an item in an inventory.</p>
<p>I&#8217;ve created a query which stores the &#8216;old&#8217; price as the prices change- but as they change more than once, it writes over the orignial.  What i really need to do is somehow copy that 1st price without it updating as the prices change &#8211; as you say, &#8216;assign the original value&#8217;.</p>
<p>Any ideas on how do to that?</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 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-18 06:12:10 -->