There are 4 tables in my database related each other using a primary key. I want to validate whether these 4 tables have data before processing. I create a button and when this button is clicked data in these 4 tables are processed and generate a report. If in any of the underlying table has no data the processing is not done. In this case I want to inform the user in which table has no data and asked to enter data in it. I want to display a message for the same. But Iam not fully succeeded in making the perfect code for the same. Will any one help me with a sample code.