Sounds like trouble with the filename. It works if you make it a simple text value.
Try getting "B24crew_" & FileNamePartTwo & ".pdf" out of the OpenReport line.
Put "Dim filename as String" at the beginning of the procedure, then
filename="B24crew_" & FileNamePartTwo & ".pdf" before the...