• Thank you Sean.

    Sorry about the mess.

    Hi. Thank you again for your response. That works very well to get rid of either status C or O, but what they want me to do is to look at all of the same customer order numbers and their status. If the same customer order number has ANY status of 'O', they do not want to see any of those customer order records. They only want to see like customer orders that All have a 'C' status.

    Below is the before status before applying your solution. They do not want to see ANY Orders 905055 because it has one with a status of 'O'. but they would want to see order AW00000253 because it doesn't have any status's of 'O". I hope this makes sense and I appreciate all of your help.

    Order# Line# STATUS

    905055 1 C

    905055 2 C

    905055 3 C

    905055 4 O

    AW00000253 1 C

    AW00000253 2 C