• Probably, but then how would you learn how to do it if we do it for you? Give it a try first, and as you have problems, ask for help.

    If you really want help, though, I suggest that you read the first article I reference below in my signature block regarding asking for assistance. Please follow the instructions in that article with posting code and sample data. You did nice job as it is, but anyone wanting to help you would have to do some editting of your code and such be fore it is usable. The more you do up front, the better assistance you will get.

    I'd also post the code you have written so far as well. It can be the starting point for you moving from cursor-based code to set-based code.