I am trying to run the following code within a loop. If I am on the LAST record in the loop I want the If/Then statement below to run, but its not running. How can I make line 6 run on the very last record of the recordset in the loop?
Do Until rec1.EOF = True
'More code here
If rec1.EOF = True Then
HoursServed(i) = HoursServed(i) & " Total = " & LoopTotal