Actually maybe I'm not that dumb, the hash wont work on insert because it's created by from ID, ID is an auto incrementing primary key. Maybe I should finish programing for the day and go to the pub... Pete