>Hi Rich
>
>This is my Plan B. It does make the referencing between objects much easier but there is more problems with the set up as there are variable numbers of the textboxes.
>
>The code looks much easier though so I may go for it.
>
>I am also intrigued as to why the original code with = doesn't work whereas STORE TO does! The manual says they are the same.
>
>Thanks
>
>mike
I don't think name expressions work on the left side of an = assignment. For example
("abc") = 1
gives an "Unrecognized Command Verb" for me while
STORE 1 TO ("abc")
works just fine. You
could have used macro substitution
lnTag = ALLTRIM(This.Tag)
Thisform.ResultLine&lnTag..txtPatientNotes.Value = ;
ALLTRIM(This.Value) +;
EVALUATE(ALLTRIM("ThisForm.ResultLine"+ALLTRIM(This.tag)+".txtPatientNotes.Value"))
but STORE is better.