I am trying to create a Notifiaction date please see table below using the following code. The problem I have as you can see in the table is that Mrs P Ball has 2 instances of notified 1 with a claimant type of TP 1 with a claimant type of PI. For some rerason my code does not like this and returns nothing for Mrs P Ball.