I have some error checking that needs to be done before a record can be added to the database. The code lives in beforeadd and beforeedit routines. My question is this, how do I display error messages to the users? Currently I just have an echo statement but that doesn't look nice. I would like the message to appear in the popup screen the same as required fields. Is there anyway to do this? Thank for the help.