<?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: Writing to dbf file in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479127#M3441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Bulla for replying the message&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I try to export test1.dbf , I got error "There was an error exporting the table, Create output table failed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached test1.dbf (ideally as said earlier i want to write on test1.dbf)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; could you be able to send a remedy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2013 22:08:54 GMT</pubDate>
    <dc:creator>AdAdhikary</dc:creator>
    <dc:date>2013-06-05T22:08:54Z</dc:date>
    <item>
      <title>Writing to dbf file</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479119#M3433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is this: I've created a vegetation survey form in ArcPad which contians a subform that I want to export to a dbf file not connected to the shapefile of the main survey form. I can get the subform to open OK and can enter the data, but when I click on a button with a control for exporting the data to a dbf file, I get an error message. I'm at a loss as to what the problem is. The script is below. I get an error message for line 24: "theRS.MoveNext 'moves to last record"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub SetID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 'Sets the unique ID for each survey &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; If ThisEvent.Object.Mode = 3 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ThisEvent.Object.Pages("General1").Controls("OID").Text = CStr(CLng(DateDiff("s",CDate(#01/01/2005#), Now)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub OpenSubFormLandCover&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 'Opens the Land Cover Form from the Landuse Form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Application.Map.Layers("Landuse").Forms("frmLndCov").Show&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub SaveCloseSubFormLandCover&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set page = editform.pages.item("Lnduse1")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 'open the DBF-file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Set theRS = Application.CreateAppObject("RecordSet")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.Open "P:\Work\SSD\Users\Huxtac\ArcPad Stuff\Veg Survey\LandCoverOut.dbf",2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.MoveNext 'moves to last record&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.AddNew 'adds a new record&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.Fields("OID").Value = layer.Forms("EDITFORM").Pages("General1").Controls("OID")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.Fields("SITE").Value = layer.Forms("EDITFORM").Pages("General1").Controls("Site")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.Fields("DOMUSE").Value = layer.Forms("frmLndCov").Pages("Lnduse1").Controls("CboDomLndUse")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.Fields("UPPER").Value = layer.Forms("frmLndCov").Pages("Lnduse1").Controls("CboLndCovUpp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.Fields("GROUND").Value = layer.Forms("frmLndCov").Pages("Lnduse1").Controls("CboLndCovGrd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.Update 'saves information to the recordset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; theRS.Close&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Set theRS = Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Map.Layers("Landuse").Forms("frmLndCov").Close&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 05:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479119#M3433</guid>
      <dc:creator>CharlesHuxtable</dc:creator>
      <dc:date>2010-10-05T05:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to dbf file</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479120#M3434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am doing exactly the same thing, the code is identical to yours with the exception of theRS.MoveNext line; I simply add the new record.&amp;nbsp; Try commenting out line 24.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 21:32:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479120#M3434</guid>
      <dc:creator>JimMeuse</dc:creator>
      <dc:date>2010-10-05T21:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to dbf file</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479121#M3435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jim, I tried what you suggested and commented out line 24, but get the following error message for line Line 25 of script: "Microsoft VB Script runtime error. Permission denied, Line 25 Column 2. Source Text Unavailable". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error for Line24 was "Error Source Unavailable. Error Description Unavailable. Line 24, Column 2. Source Text Unavailable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if I need to write some script into the ArcPad APX file to allow ArcPad to talk to the dbf file? I was also wondering if the database file which I created for receiving the written data from Arcpad was somehow the wrong format - I created it in Excel, but Maybe ArcCatalogue would be better&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 23:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479121#M3435</guid>
      <dc:creator>CharlesHuxtable</dc:creator>
      <dc:date>2010-10-05T23:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to dbf file</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479122#M3436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have also got similar messages in the past.&amp;nbsp; Is the DBF file read-only?&amp;nbsp; You should not have to do anything fancy here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 10:10:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479122#M3436</guid>
      <dc:creator>JimMeuse</dc:creator>
      <dc:date>2010-10-06T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to dbf file</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479123#M3437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it to work - not sure what I did wrong initially but all good now. Thanks for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 02:04:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479123#M3437</guid>
      <dc:creator>CharlesHuxtable</dc:creator>
      <dc:date>2010-10-08T02:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to dbf file</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479124#M3438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm pretty sure that RS.MoveNext will throw an error if there are no records in the dbf, so the first time you try to populate the dbf you will get this error.&amp;nbsp; You need to make sure there is a record in there to begin with.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But you don't really need it in there anyways, so removing it and just going straight to RS.AddNew should be fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 11:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479124#M3438</guid>
      <dc:creator>BBulla</dc:creator>
      <dc:date>2010-10-08T11:38:59Z</dc:date>
    </item>
    <item>
      <title>Writing to dbf file</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479125#M3439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just changed excel file to a dbf file and imported to Arc GIS. (I had test.xlsx) which I converted to (test.dbf) by changing the extension. I imported to Arc GIS. However I cannot write on this dbf file. It would be great if any one can tell me how to write &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in this dbf file inside ARC GIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 01:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479125#M3439</guid>
      <dc:creator>AdAdhikary</dc:creator>
      <dc:date>2013-06-05T01:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to dbf file</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479126#M3440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm pretty sure you can't just rename a file to .dbf and have it work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try exporting the one you renamed out of ArcMap and call it test2.dbf, and then try editing that one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From my experience, the only .dbf that will work in ArcMap or ArcPad is one that is created directly out of an ESRI product.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:20:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479126#M3440</guid>
      <dc:creator>BBulla</dc:creator>
      <dc:date>2013-06-05T12:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to dbf file</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479127#M3441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Bulla for replying the message&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I try to export test1.dbf , I got error "There was an error exporting the table, Create output table failed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached test1.dbf (ideally as said earlier i want to write on test1.dbf)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; could you be able to send a remedy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 22:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-to-dbf-file/m-p/479127#M3441</guid>
      <dc:creator>AdAdhikary</dc:creator>
      <dc:date>2013-06-05T22:08:54Z</dc:date>
    </item>
  </channel>
</rss>

