with evaluate("Thisform.ResultLine"+ALLTRIM(This.Tag)+".txtPatientNotes") .Value = ALLTRIM(This.Value) + EVALUATE(ALLTRIM("ThisForm.ResultLine"+ALLTRIM(This.tag)+".txtPatientNotes.Value")) .SetFocus() endwithYou can replace all the strings more readable
lcName = "Thisform.ResultLine"+ALLTRIM(This.Tag)+".txtPatientNotes" with evaluate(lcName) .Value = alltrim(this.Value) + alltrim(.Value) .SetFocus() endwith