I have two data tables which contain items and values. I want to essentially check 'if data table A row(0) contains something which exists in any row(0) of data table B to remove the row of DT A.
However, I am being met with the error once it removes the first matching item: For Each Row: Collection was modified; enumeration operation might not execute.
Could anyone please explain why this might be happening and how I fix it?
Thank you for your suggestion, I actually fixed it now by writing ‘not’ in the if statement and instead writing it to a new data table rather than removing it.