>Hello Naomi
>I was looking at the code and trying to trace it don't you think that these two lines have something also related
>
>lcSubjects = ", " + Subject + "I"
> local &lcsubjects
>
>and here when I get variable subject is not found
>
> replace (Subject) with ("m." + Subject) in c_FinalResult
It should have been local &Subject (not local &lcSubjects).
also see my other reply, you don't need a variable after all, you can get without it, using direct replace command as I showed.
If it's not broken, fix it until it is.
My Blog