<?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: Delete record from DBF table. in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247694#M1813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do really thank you for yoru help...it is appreciated...but no go...I dont know whats going on here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is what i have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I open ArcPAD and run the this code.&amp;nbsp; It tells me which record it is going to delete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;varDescription = rs.fields("Descriptio").value
msgbox "Value is: " &amp;amp; varDescription&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The messagebox tells me the correct value so It seems that I am on the correct record.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then close ArcPAD and go into the dbf and the record is still there...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no idea why it wont delete the record...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could it be soemthing else?&amp;nbsp; I imagine I would get errors if something else is wrong....hmmmmm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; Dim objRS3, objSelLayer3, objEFPageOneControls3, objEditForm3
 Set objSelLayer3 = Map.SelectionLayer
 Set objRS3 = objSelLayer3.Records
 objRS3.Bookmark = Map.SelectionBookmark
 Set objEditForm3 = application.map.layers("Supports").forms("EDITFORM")
 Set objEFPageOneControls3 = objEditForm3.Pages("page3").Controls

 ' Populate variables to the form controls.
 Dim varMUTCD_CODE
 varMUTCD_CODE = objEFPageOneControls3("MUTCD_CODE").Value

 Dim objForm, objPageControls, rs
 Set objForm = EDITFORM
 Set objPageControls = objForm.Pages("PAGE3").Controls
 Set rs = CreateAppObject("recordset")
 rs.Open "C:\GPS_data_collections\StreetSign_Collection_ArcPAD\Packets_Outgoing\Support_Signs_Data_Collection_2011\MUTCD_Code.dbf", 2

&amp;nbsp;&amp;nbsp;&amp;nbsp; 'search for the current records MUTCD_Code
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dbfQuery
&amp;nbsp;&amp;nbsp;&amp;nbsp; dbfQuery = "MUTCD_Code = """ &amp;amp; varMUTCD_CODE &amp;amp; """"
&amp;nbsp;&amp;nbsp;&amp;nbsp; rs.find(dbfQuery)

&amp;nbsp;&amp;nbsp; Dim varDescription
&amp;nbsp;&amp;nbsp; varDescription = rs.fields("Descriptio").value
&amp;nbsp;&amp;nbsp; msgbox "Value is: " &amp;amp; varDescription

&amp;nbsp;&amp;nbsp; rs.Delete
&amp;nbsp;&amp;nbsp; rs.Update
&amp;nbsp;&amp;nbsp; rs.Pack
&amp;nbsp;&amp;nbsp; rs.Close 
 
 msgbox "Deleteing"
&amp;nbsp;&amp;nbsp;&amp;nbsp; set rs = nothing&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:20:03 GMT</pubDate>
    <dc:creator>JayKappy</dc:creator>
    <dc:date>2021-12-11T12:20:03Z</dc:date>
    <item>
      <title>Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247685#M1804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I cant figure out how to delete a record from a DBF table....I have a few DBF lookup tables with my application that I have code that allows the user to update and create new rows in the DBF table.&amp;nbsp; But now I want to give the user the ability to delete recrods as well...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am tryign this with &lt;/SPAN&gt;&lt;STRONG&gt;NO&lt;/STRONG&gt;&lt;SPAN&gt; success&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; Dim objRS3, objSelLayer3, objEFPageOneControls3, objEditForm3
 Set objSelLayer3 = Map.SelectionLayer
 Set objRS3 = objSelLayer3.Records
 objRS3.Bookmark = Map.SelectionBookmark
 Set objEditForm3 = application.map.layers("Supports").forms("EDITFORM")
 Set objEFPageOneControls3 = objEditForm3.Pages("page3").Controls

 ' Populate variables to the form controls.
 Dim varMUTCD_CODE
 varMUTCD_CODE = objEFPageOneControls3("MUTCD_CODE").Value

 Dim objForm, objPageControls, rs
 Set objForm = EDITFORM
 Set objPageControls = objForm.Pages("PAGE3").Controls
 Set rs = CreateAppObject("recordset")
 rs.Open "C:\GPS_data_collections\StreetSign_Collection_ArcPAD\DBF_Lookup_Files\MUTCD_Code.dbf", 2

&amp;nbsp;&amp;nbsp;&amp;nbsp; 'search for the current records MUTCD_Code
&amp;nbsp;&amp;nbsp;&amp;nbsp; dim dbfQuery, editRecord
&amp;nbsp;&amp;nbsp;&amp;nbsp; dbfQuery = "[MUTCD_Code] = """ &amp;amp; varMUTCD_CODE &amp;amp; """"
&amp;nbsp;&amp;nbsp;&amp;nbsp; editRecord = rs.find(dbfQuery)

&amp;nbsp;&amp;nbsp;&amp;nbsp; 'edit the record
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (editRecord &amp;gt; 0) then

&amp;nbsp; Dim Answer, MyNote
&amp;nbsp; MyNote = "Are you sure you want to delete this MUTCD Code?"
&amp;nbsp; Answer = MsgBox(MyNote, vbQuestion + vbYesNo, "???")
&amp;nbsp; If Answer = vbNo Then
&amp;nbsp;&amp;nbsp; Exit Sub
&amp;nbsp; Else
&amp;nbsp;&amp;nbsp; rs.movefirst
&amp;nbsp;&amp;nbsp; rs.move(editRecord - 1)
&amp;nbsp;&amp;nbsp; rs.Delete
&amp;nbsp;&amp;nbsp; rs.Update
&amp;nbsp;&amp;nbsp; rs.Close 
&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; end if

&amp;nbsp;&amp;nbsp;&amp;nbsp; set rs = nothing&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 19:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247685#M1804</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2010-12-16T19:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247686#M1805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rs.Find(dbfQuery)

&amp;nbsp;&amp;nbsp;&amp;nbsp; 'edit the record
&amp;nbsp;&amp;nbsp;&amp;nbsp; if Not rs.EOF then

&amp;nbsp; Dim Answer, MyNote
&amp;nbsp; MyNote = "Are you sure you want to delete this MUTCD Code?"
&amp;nbsp; Answer = MsgBox(MyNote, vbQuestion + vbYesNo, "???")
&amp;nbsp; If Answer = vbNo Then
&amp;nbsp;&amp;nbsp; Exit Sub
&amp;nbsp; Else
&amp;nbsp;&amp;nbsp; rs.Delete
&amp;nbsp;&amp;nbsp; rs.Update
&amp;nbsp;&amp;nbsp; rs.Close 
&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; end if

&amp;nbsp;&amp;nbsp;&amp;nbsp; set rs = nothing&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Find method of the recordset object should move the cursor to the desired record.&amp;nbsp; Delete that record.&amp;nbsp; Update. Close.&amp;nbsp; Should work but I have not tested it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247686#M1805</guid>
      <dc:creator>IvanKautter</dc:creator>
      <dc:date>2021-12-11T12:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247687#M1806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That didnt seem to work....As I said I can update and create a new record but having issues with Deleting...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I am doing:&amp;nbsp; I am finding a specific MUTCD_Code in the dbf adn then deleting that record...Well thats what I am TRYING to do.&amp;nbsp; I run the code the close ArcPAD.&amp;nbsp; I then go into the DBF and the record is still there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I msgbox the dbfQuery&amp;nbsp; I get the correct value..just cant figure out why it wont delete&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
'search for the current records MUTCD_Code
Dim dbfQuery
dbfQuery = "MUTCD_Code = """ &amp;amp; varMUTCD_CODE &amp;amp; """"
rs.find(dbfQuery)

'edit the record
if Not rs.EOF then
&amp;nbsp; Dim Answer, MyNote
&amp;nbsp; MyNote = "Are you sure you want to delete this MUTCD Code?"
&amp;nbsp; Answer = MsgBox(MyNote, vbQuestion + vbYesNo, "???")
&amp;nbsp; If Answer = vbNo Then
&amp;nbsp;&amp;nbsp; Exit Sub
&amp;nbsp; Else
&amp;nbsp;&amp;nbsp; rs.Delete
&amp;nbsp;&amp;nbsp; rs.Update
&amp;nbsp;&amp;nbsp; rs.Close 
&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; end if
&amp;nbsp;&amp;nbsp;&amp;nbsp; set rs = nothing&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:19:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247687#M1806</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2021-12-11T12:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247688#M1807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If Answer = vbYes Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; rs.Delete&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; rs.Update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; rs.Close &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 11:11:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247688#M1807</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2010-12-20T11:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247689#M1808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;still not working....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added this: varDescription = rs.fields("Descriptio").value to determine if I was even getting a record or not...and verified that I am and it is the correct record...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it simply wont delete the record from the dbf file.&amp;nbsp; Could the dbf be corrupt or something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 Dim objRS3, objSelLayer3, objEFPageOneControls3, objEditForm3
 Set objSelLayer3 = Map.SelectionLayer
 Set objRS3 = objSelLayer3.Records
 objRS3.Bookmark = Map.SelectionBookmark
 Set objEditForm3 = application.map.layers("Supports").forms("EDITFORM")
 Set objEFPageOneControls3 = objEditForm3.Pages("page3").Controls

 ' Populate variables to the form controls.
 Dim varMUTCD_CODE
 varMUTCD_CODE = objEFPageOneControls3("MUTCD_CODE").Value

 Dim objForm, objPageControls, rs
 Set objForm = EDITFORM
 Set objPageControls = objForm.Pages("PAGE3").Controls
 Set rs = CreateAppObject("recordset")
 rs.Open "C:\GPS_data_collections\StreetSign_Collection_ArcPAD\MUTCD_Code.dbf", 2

&amp;nbsp;&amp;nbsp;&amp;nbsp; 'search for the current records MUTCD_Code
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dbfQuery
&amp;nbsp;&amp;nbsp;&amp;nbsp; dbfQuery = "MUTCD_Code = """ &amp;amp; varMUTCD_CODE &amp;amp; """"
 rs.find(dbfQuery)

 Dim varDescription
 varDescription = rs.fields("Descriptio").value

 msgbox "Value is: " &amp;amp; varDescription

 rs.Delete
 rs.Update
 rs.Close 
 msgbox "Deleteing"
&amp;nbsp;&amp;nbsp;&amp;nbsp; set rs = nothing&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247689#M1808</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2021-12-11T12:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247690#M1809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure the record is not deleted? Remember that deleting a record in dbase file usually only marks the record for deletion and does not actually delete it. To do that you must do an:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;aRecordset.Pack&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after the update&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 07:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247690#M1809</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2010-12-21T07:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247691#M1810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you sure the record is not deleted? Remember that deleting a record in dbase file usually only marks the record for deletion and does not actually delete it. To do that you must do an:&lt;BR /&gt;&lt;BR /&gt;aRecordset.Pack&lt;BR /&gt;&lt;BR /&gt;after the update&lt;BR /&gt;&lt;BR /&gt;Rolf&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All I am doing is in my code example....That is what I am asking..is there something more I have to do to delete the record?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I can simply put aRecordset.Pack in my ArcPAD code?&amp;nbsp; Not really sure how to pack this db from ArcPAD...guess thats why the record is not deleting...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have never done this before...workign with dbf's, updating, deleting, etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After I run the code...I go into the dbf and the record is still there....not marked deleted or anything....if I see all the field values and the record I am assuming its still there....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 15:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247691#M1810</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2010-12-21T15:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247692#M1811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;...............................................................&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 15:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247692#M1811</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2010-12-21T15:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247693#M1812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; msgbox "Value is: " &amp;amp; varDescription&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; rs.Delete&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; rs.Update&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; rs.Pack&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; rs.Close &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 05:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247693#M1812</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2010-12-22T05:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247694#M1813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do really thank you for yoru help...it is appreciated...but no go...I dont know whats going on here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is what i have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I open ArcPAD and run the this code.&amp;nbsp; It tells me which record it is going to delete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;varDescription = rs.fields("Descriptio").value
msgbox "Value is: " &amp;amp; varDescription&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The messagebox tells me the correct value so It seems that I am on the correct record.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then close ArcPAD and go into the dbf and the record is still there...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no idea why it wont delete the record...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could it be soemthing else?&amp;nbsp; I imagine I would get errors if something else is wrong....hmmmmm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; Dim objRS3, objSelLayer3, objEFPageOneControls3, objEditForm3
 Set objSelLayer3 = Map.SelectionLayer
 Set objRS3 = objSelLayer3.Records
 objRS3.Bookmark = Map.SelectionBookmark
 Set objEditForm3 = application.map.layers("Supports").forms("EDITFORM")
 Set objEFPageOneControls3 = objEditForm3.Pages("page3").Controls

 ' Populate variables to the form controls.
 Dim varMUTCD_CODE
 varMUTCD_CODE = objEFPageOneControls3("MUTCD_CODE").Value

 Dim objForm, objPageControls, rs
 Set objForm = EDITFORM
 Set objPageControls = objForm.Pages("PAGE3").Controls
 Set rs = CreateAppObject("recordset")
 rs.Open "C:\GPS_data_collections\StreetSign_Collection_ArcPAD\Packets_Outgoing\Support_Signs_Data_Collection_2011\MUTCD_Code.dbf", 2

&amp;nbsp;&amp;nbsp;&amp;nbsp; 'search for the current records MUTCD_Code
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dbfQuery
&amp;nbsp;&amp;nbsp;&amp;nbsp; dbfQuery = "MUTCD_Code = """ &amp;amp; varMUTCD_CODE &amp;amp; """"
&amp;nbsp;&amp;nbsp;&amp;nbsp; rs.find(dbfQuery)

&amp;nbsp;&amp;nbsp; Dim varDescription
&amp;nbsp;&amp;nbsp; varDescription = rs.fields("Descriptio").value
&amp;nbsp;&amp;nbsp; msgbox "Value is: " &amp;amp; varDescription

&amp;nbsp;&amp;nbsp; rs.Delete
&amp;nbsp;&amp;nbsp; rs.Update
&amp;nbsp;&amp;nbsp; rs.Pack
&amp;nbsp;&amp;nbsp; rs.Close 
 
 msgbox "Deleteing"
&amp;nbsp;&amp;nbsp;&amp;nbsp; set rs = nothing&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:20:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247694#M1813</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2021-12-11T12:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247695#M1814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've had problems with this in the past.&amp;nbsp; Try removing the double quotes from the rs.Open line.&amp;nbsp; The stucture that works for me is to store the filepath and name in a variable and reference that in the rs.Open line wrapped in brackets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg.&amp;nbsp;&amp;nbsp; rs.Open (FileToUseVariable), 2&lt;/SPAN&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;SPAN&gt;Neil.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 01:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247695#M1814</guid>
      <dc:creator>NeilChristie</dc:creator>
      <dc:date>2010-12-23T01:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247696#M1815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is what I did to no avail....cant figure this one out...driving me nuts...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that I am getting into the RS because I can return the correct record with this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim varDescription
varDescription = rs.fields("Descriptio").value
msgbox "Value is: " &amp;amp; varDescription&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;..snip&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;


I thank you all for your help with this...any other thoughts woudl be great but understand this is hard to pin point...
HAVE A GREAT HOLIDAY.

Dim FilePath
FilePath = "C:\GPS_data_collections\Packets_Outgoing\Support_Signs_Data_Collection_2011\MUTCD_Code.dbf"

rs.Open(FilePath),2 
'search for the current records MUTCD_Code
Dim dbfQuery
dbfQuery = "MUTCD_Code = """ &amp;amp; varMUTCD_CODE &amp;amp; """"
rs.find(dbfQuery)
&amp;nbsp;&amp;nbsp; 
Dim varDescription
varDescription = rs.fields("Descriptio").value
msgbox "Value is: " &amp;amp; varDescription

rs.Delete
rs.Update
rs.Pack
rs.Close 
 
msgbox "Deleteing"
set rs = nothing
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;..snip&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247696#M1815</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2021-12-11T12:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247697#M1816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is strange, try to use the code below to check if the record is deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim varDescription&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;varDescription = rs.fields("Descriptio").value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;msgbox "Value is: " &amp;amp; varDescription&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rs.Delete&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rs.Update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MessageBox "Is the record deleted? " &amp;amp; CStr(rs.IsDeleted)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rs.Pack&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rs.Close &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;msgbox "Deleteing"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set rs = nothing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 05:09:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247697#M1816</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2010-12-30T05:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247698#M1817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try wrapping your field name in square brackets in the query variable.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dbfQuery = "[MUTCD_Code] = """ &amp;amp; varMUTCD_CODE &amp;amp; """"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without them, the search finds the correct record in the recordset but the delete doesn't happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With them, the search finds the record and the recordset is updated after the delete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 18:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247698#M1817</guid>
      <dc:creator>NeilChristie</dc:creator>
      <dc:date>2011-01-03T18:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247699#M1818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is strange, try to use the code below to check if the record is deleted.&lt;BR /&gt;&lt;BR /&gt;Dim varDescription&lt;BR /&gt;varDescription = rs.fields("Descriptio").value&lt;BR /&gt;msgbox "Value is: " &amp;amp; varDescription&lt;BR /&gt;&lt;BR /&gt;rs.Delete&lt;BR /&gt;rs.Update&lt;BR /&gt;MessageBox "Is the record deleted? " &amp;amp; CStr(rs.IsDeleted)&lt;BR /&gt;rs.Pack&lt;BR /&gt;rs.Close &lt;BR /&gt; &lt;BR /&gt;msgbox "Deleteing"&lt;BR /&gt;set rs = nothing&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It tells me FALSE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 20:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247699#M1818</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-01-06T20:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from DBF table.</title>
      <link>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247700#M1819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try wrapping your field name in square brackets in the query variable.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;dbfQuery = "[MUTCD_Code] = """ &amp;amp; varMUTCD_CODE &amp;amp; """"&lt;BR /&gt;&lt;BR /&gt;Without them, the search finds the correct record in the recordset but the delete doesn't happen.&lt;BR /&gt;With them, the search finds the record and the recordset is updated after the delete.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Neil.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the [] worked.....Yea it did....THANK YOU VERY MUCH&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 20:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/delete-record-from-dbf-table/m-p/247700#M1819</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-01-06T20:07:07Z</dc:date>
    </item>
  </channel>
</rss>

