After a few googling, found the code to be Open log For Append As #2 which is added to the top of the file, like so
EMD = DLookup("[EMD]", "tblFilePath", "[PathID]=1") & Rename
NoPax = DLookup("[NoPax]", "tblFilePath", "[PathID]=1") & Rename
Set RSFiles =...