For the mean time I have fixed the problem by using a macro instead of a function, seems to have fixed the problem, but now something else has cropped up.
The macro is supposed to place the report in design view & then preview view again, to refresh the data based upon certain criteria I...