Verify that a potential value for a field with a coded value domain is valid.

http://www.maprantala.com/?p=4506