Hi,
I am trying to pull data from a SharePoint List into HTML in order to email directly to a user. I am currently using the following code.
"<table border='1',border-collapse: collapse, width='100%'>" &
"<th>Record Date</th><th>Command Type</th><th>Incident Type</th><th>Case ID</th><th>Skill Level</th><th>Exercise Name</th><th>Training Name</th><th>CPD Name</th>" &
Concat(colRecords,"<tr><td>" & 'Log Date' & "</td><td>" & 'Command Type' & "</td><td>" & 'Incident Type' & "</td><td>" & 'Case ID' & "</td><td>" & 'Command Level' & "</td><td>" & 'Exercise Name' & "</td><td>" & 'Training Name' & "</td><td>" & CPDName &"</td>")&"</Table>"
The data for each record appears in a single line, i have tried inserting <tr> after Case ID to make the data appear over 2 lines, it splits the headings correctly but all the data comes below the Command level etc and not below the headings, is there a way to do it so each record comes under its retrospective heading?
Also if so can the headings be repeated for each record and not just once.
Regards
Mark