In this senario Better to  use record group. Using record group we dump the table data at client system level and check the entered data. To achive this you write functions to find dup record under the Trigger When_new_item_instance at the block level. If any body wants complete code please mail me.
Above answer was rated as good by the following members: ranjankumardey
RE: how we will find duplicate record in detail block ...
Create a trigger at form level When-database-trigger Post; (this command will temporary apply the changes to the database) Than you find by Sql Query if it is duplicate Record.
RE: how we will find duplicate record in detail block when we leave the field
In this senario Better to use record group. Using record group we dump the table data at client system level and check the entered data. To achive this you write functions to find dup record under the Trigger When_new_item_instance at the block level. If any body wants complete code please mail me.