• I've solved it; or rather my boss did.

    There was a problem with the way I'd formatted the report, I'd deleted the header row so I was putting my fields in the wrong row. That meant it would only ever show one row. It looked alright at first glance so it took a while to spot which is why he didn't see it the first time he checked.

    Thanks for your help.


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537