Thanks for lighting that up to me, chrisgbk! Indeed, seems like I've missed the usage of the locking.
I think we're pretty close to a solution here, but I cannot really follow anymore since I rarely get that deep into building SQL statements as proved with my mishap about the locking. I'd have to look up alot of information rather than using experience.
However, keep in mind this isn't google or something. I think it's better to have an easy code rather than winning 0.001 second with it despite my strive for performance. Anyway, that's Brick's choice
.
Grtz, DePhille