Writing the code in loop

I need to write below code in a loop :

"<table border=""1"" style=""width:100%""><style>


</style>"&
"<tr><td>" & ri!headerList[1] & "</td><td>
"& ri!cdtType[2].commentDate&"</td>
</tr>"
&"<tr><td>" & ri!headerList[2] & "</td><td>
"& ri!cdtType[1].comment_txt &"</td>
</tr>"



&"</table>",

 I want a looping only for 

"<tr><td>" & ri!headerList[1] & "</td><td>
"& ri!cdtType[2].commentDate &"</td>
</tr>"

Can anyone let me know please

  Discussion posts and replies are publicly visible