i'd sort of tried that but it was a bit of code posted on a forum and i can't remember where - at the time i was having trouble with something else so i didn't look at it any further - but it's something I'd like to have a look at.
thanks anyway - i'll try searching with "database interface wrapper class" and see what i come up with