Im guessing the reason no ones responded to this is bec. there isnt enough information to work on to even understand why your code is not working. you are using a lot of columns and at least 1 variable that only you know what it contains. adding a qvw would be most helpful to enable someone else to help you.