Hi, Albert!
>>
Does anybody have a clue what I am missing?
<<
Yes, I have <s>!
It was a little bit tricky because the location of the ">" sign is near the *E*N*D* of the HTML output, not above the table!!!!!!
From finding out this it was an easy way to recognize the "bad" line of code
lcText = "<tr><td>" + SUBSTR(lcText, 1, LEN(lcText) - LEN("<tr><td>"))
There is some error, which converts the end of lcText into a trailing ">" sign!
The rest is your job <vbg>!
SeBaFlu