I have a data entry form and when I enter a value for a foreign key in the form I want the error to show immediately (you can't add or change a record because a related record is required in table X -(Foreign key value must exist in table X as Primary key value)) not when saving the record after entering all the fields. Thank you for your help.