Ahaaaaaaaaaa!
That could well be the answer I've been looking for!
But before I hit the resolved button, can I just ask for a little clarification about what that piece of code does:
So, if I understand it right- that piece of code you gave can be set to compare two column values (say "Name" and "Email_address") and IF someone tries to add a record which contains those same two values, then the database won't allow the record to be added. Have I got that right?