I want to concat the text for two input boxes on the add form to the uploaded file name while keeping the time stamp that is added by asprunner. I used the code below.
Function BeforeAdd(dict)
' Parameters:
' dict - Scripting.Dictionary object.
' Each field on the Add form represented as 'Field name'-'Field value' pair
'** Custom code ****
' put your custom code here
iName = dict("caseno") & "- " & dict("tracer")
dict("file_name") = iName & "- " & Right(iName,19)
BeforeAdd = True
' set BeforeAdd to True if you like to proceed with adding new record
' set it to False in other case
End Function