A few thoughts:
I think, basically, your code is good except it needs a NOT in front of it. It looks to me like the code is currently saying, "allow me to change the status to COMP if there is data in one of the tables but not in the other" -- which ...