• This has been fixed. Basically, there were a few other divisors in the query that I didn't check as I thought it had something to do with that section alone.

    I added case statements to the other divisors and it worked.

    Thanks for your help!

    jess.