i took it out of the loop i removed the and statements and it works
is there anything wrong with the and statements
it works in sql manually
i cant get it to work if there's even 1 and statement.
i know someone who got it to work on the same system here with one and statement
any ideas??