That's what I wanted to hear! thanks so much. I've spent hours and hours messing round with different ways. just couldn't work out why $row.Field by itself didn't work. Didn't know about this $(....) thing.