You could also take a look at this

http://www.datapigtechnologies.com/f...es/pivot1.html

Dave