That works fantastically, thank you! I just changed it from applet back to layer for launching the form. Here is the full script in case anyone needs it. I added an if/else statement to remove the comma at the beginning:Option Explicit
Sub ShowForm()
'===========================================
'Show the form
Layer.Forms("EDITFORM").Show
End Sub
'=====================================
Sub btnAdd_onClick()
'Code when clicking the "Add" button
'Will take a listbox selection value and add this to a textbox value
'=====================================
'Dimension the form, page, texfield and listbox
Dim objForm, objPage, strText, pListbox
Set objForm = Layer.Forms("EDITFORM")
Set objPage = objForm.Pages("[PAGE NAME]")
Set pListBox = objPage.controls("[LISTBOX NAME]")
'Get existing value of textfield.
strText = objPage.Controls("[TEXT FIELD NAME]").Value
'Update the text field with the text value form the listbox.
'Using a comma delimiter
If strText = "" then
strText = pListBox.Value
Else
strText = strText & ", " & pListBox.Value
End If
objPage.Controls("[TEXT FIELD NAME]").Value = strText
'Clean up
Set objForm = Nothing
Set objPage = Nothing
End SubOn the button on the onclick event is simply "btnAdd_onClick( )"