<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Has data in form changed - called from the OnOK event in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/has-data-in-form-changed-called-from-the-onok/m-p/6974#M38</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Salome,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How about writing the attributes to a set of Application.UserProperties("Field1") values so that you have the records in memory when the form is first opened, then when you press ok you can check to see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if Application.Userproperties("field1") = Application.Map.layers("yourlayer").Forms("EditForm").Pages("YourPage").Controls("txtField1").Value then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; do your update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gareth&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Sep 2010 23:09:28 GMT</pubDate>
    <dc:creator>GarethWalters</dc:creator>
    <dc:date>2010-09-07T23:09:28Z</dc:date>
    <item>
      <title>Has data in form changed - called from the OnOK event</title>
      <link>https://community.esri.com/t5/arcpad-questions/has-data-in-form-changed-called-from-the-onok/m-p/6973#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there code that will help me to know whether any of the data/values in an edit form have changed or not. I want to call a sub from the OnOK event of a form that will update a 'survey date' field, but only if any of the values were changed or edited. So if they were not changed or edited they were basically not surveyed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I gues something like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If Application.Forms(Form1).Pages(Page1) = changed? Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Salome'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 10:34:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/has-data-in-form-changed-called-from-the-onok/m-p/6973#M37</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-09-07T10:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Has data in form changed - called from the OnOK event</title>
      <link>https://community.esri.com/t5/arcpad-questions/has-data-in-form-changed-called-from-the-onok/m-p/6974#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Salome,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How about writing the attributes to a set of Application.UserProperties("Field1") values so that you have the records in memory when the form is first opened, then when you press ok you can check to see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if Application.Userproperties("field1") = Application.Map.layers("yourlayer").Forms("EditForm").Pages("YourPage").Controls("txtField1").Value then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; do your update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gareth&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 23:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/has-data-in-form-changed-called-from-the-onok/m-p/6974#M38</guid>
      <dc:creator>GarethWalters</dc:creator>
      <dc:date>2010-09-07T23:09:28Z</dc:date>
    </item>
  </channel>
</rss>

