the reason for the
is beacuse the next part is the
and then the
So I assume that I would need to remove the closing one too?
I have been through the code and have removed all of the
which has not changed the output at all.
After the second set of loops, the remaining ones just show the first record only.