Hi I'm not sure if this follows the 'best practices' (for me it do) and what kind of RDBMS you're using, but the best place for such a logic is a database itself. Using stored procedures, you can code such a checking and validation on the table level, and avoid code overhead.
Sergiusz --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]