Select to view content in your preferred language

Using a Button to Write in a point's attribute

632
0
04-23-2012 12:17 PM
BillTrask
Deactivated User
I'm new to ArcPad and I would like to simply click a button on the Editform that will write to a new feature's field.  I've written the following code in the onclick event of a button on the Editform;

Dim objRS
Set objRS = Map.SelectionLayer.Records
objRS.Bookmark = ThisEvent.Bookmark
objRS.Fields("Other").value = ("Apples")
objRS.Update

where "Other" is the field that I'm writing to and "Apples" is the desired entry.  When I initially open the form, click the Button, and hit OK, the point is created without "Apple" being written in.  When I select the newly created point, however, the form comes back up and click on the same button will  write "Apples" to the "Other" field.  Any thoughts?
Tags (3)
0 Kudos
0 Replies