<?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: .Execute error in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/execute-error/m-p/358580#M2590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;error was fixed....I think it was a value in a domain or the spelling....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code as is works fine....the error was in the SQL statement as I was using an older version of the project for testing in ArcPAd 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Aug 2010 12:03:56 GMT</pubDate>
    <dc:creator>JayKappy</dc:creator>
    <dc:date>2010-08-12T12:03:56Z</dc:date>
    <item>
      <title>.Execute error</title>
      <link>https://community.esri.com/t5/arcpad-questions/execute-error/m-p/358579#M2589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have this code in my ArcPAD 8 sp 4 project....I moved it to ArcPad 10 and getting an error on the line:&amp;nbsp; iCount = pDS.Execute(sSQL) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the .Execute command still viable for ArcPAD 10?&amp;nbsp; the code works fine in ArcPAd 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Dim sSQL 
sSQL = "INSERT INTO OUFALLS_HISTORICAL (INSPECT_BY, AXF_TIMESTAMP, AXF_STATUS) VALUES ('" &amp;amp; varcbo_User &amp;amp; "', getDate(), 1)" 

' Get the project and open the Data Source
 Dim strFileName2
 strFileName2 = varAXFFileName_2

&amp;nbsp; '++ open the selected AXF file
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pDS
 Set pDS = OpenAXF(strFileName2)
 If (pDS Is Nothing) Then
&amp;nbsp; Console.Print "Open DataSource failed"&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub
 End If

' Run the SQL Statement
 Dim iCount
 iCount = pDS.Execute(sSQL)
' Close the Dataset
 pDS.Close()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 20:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/execute-error/m-p/358579#M2589</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2010-08-10T20:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: .Execute error</title>
      <link>https://community.esri.com/t5/arcpad-questions/execute-error/m-p/358580#M2590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;error was fixed....I think it was a value in a domain or the spelling....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code as is works fine....the error was in the SQL statement as I was using an older version of the project for testing in ArcPAd 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 12:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/execute-error/m-p/358580#M2590</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2010-08-12T12:03:56Z</dc:date>
    </item>
  </channel>
</rss>

