As posted here, your code looks OK. I put it in a method of a 'custom' class and ran it successfully with no syntax errors, and both cursors were created as specified. I don't have Windows 2000 on this machine so I can't comment on that, although it seems unlikely that the OS version would make any difference. More likely it's something along the lines that Trey and Cindy have suggested. Have you tried blowing away the entire method and recreating it?
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.