I looked already through a couple of postings here but I'm still lost somehow...
I used vb and js some time ago so the structure itself is quite familiar. Still I'm not familiar how to use it in ArcPad Studio and I'm wondering if someone could shed some light on where I'm wrong...
I have two main objectives:
1) seems to be very easy: I need to concatenate the values from two fields in a form, txtfarmer_id and txtplot_id and to write the new value in txtplot_ident. This is what I constructed from other scripts so far:
Sub SumPlotIdent
Dim objControl, objPage, plotId, plotIdent
Set objControl = ThisEvent.Object
Set objPage = ThisEvent.Object.Parent
plotId = objControl.Value
plotIdent = objPage.Controls("txtfarmer_id").Value + plotId
objPage.Controls("txtplot_ident").Value = plotIdent
End Sub
(There is an End Sub in the last line but its not visible)
I have set plotId and plotIdent as variables, from my understanding "txtfarmer_id" and "txtplot_ident" should be the fields identifiers used in the form. I have put this script in the onchange event for the txtplot_id field, which should be objControl, right?
I keep getting following error message and have no clue what to look for:

2) For the second challenge I already found a script which I think should do what I need: https://community.esri.com/thread/74367
only that I have radio buttons at the moment and no combo box . It's also not that complicated - I only want to hide the next set of radio buttons when for the first question the answer is Agriculture:

I changed the radio buttons to combo boxes to make it easier to check for the selection, so the first is cboMain, the second cboOther.
This is what I did so far:
Sub hideShow
'Create and define Page, and Control
Dim objPage, objControl
'If cboMain field value is Ariculture (1), do the following:
If objControl.Item("cboMain").value = 1 Then
'disable cboOther field
objControl.Item("cboOther").Enabled = False
'and set value of Other_Landuse field to "N/A"
objControl.Item("cboOther").Value = "8"
Else
'enable cboOther field
objControl.Item("cboOther").Enabled = True
End SubI am getting the same error message as for the first script SumPlotIdent.
Question beyond these issues:
At the moment I remove the layer with the form in ArcPad and add it again to test it (and to get the error message). Is there an easier way to do it?
Any leads are highly appreciated!