Thomason,
I'd like to amend my previous post just a tad...
You don't wan't to place the call to WriteHTMLReport(FieldVal) just after the comment. Otherwise you end up with an HTML Report for each horse.
DOH!
You are going to need to insert logic to determine the start and end of each race and use a multidimensional array variable so that it contains an index for each track and race number as well as each horse number.
Something like this in the Declarations section of your project:
Code:
'FieldVal (20 tracks, 250 races, 1500 horses, 1435 fields per horse)
Dim FieldVal(1 to 20, 1 to 250, 1 to 1500, 1 to 1435)
You want to place your call to WriteHTMLReport(FieldVal) after all races have been read from all loaded files.
Again Good Luck,
Jeff