Thanks for your instant reply..but the problem is i have to provide a range like from '00:00:00' to '00:00:00' and if i am setting it like you are suggesting it will not fetch any record if user left the field without any input but it should be like if user is not giving any input all records should be fetched.
Regards
Pramod