cheers timzim I've done a search for ccsfms and it's uncovered lots of files so it looks like I am using he same sql