Thanks guys.
We use a number of reports at work, and every couple of months one of them needs slightly changing. So i know the principle behind it, but i dont ever really do enough to learn the language itself, without delving into the manuals everytime, which to be honest give me nightmares...