Howard, >This will fail - he's declared i as shortint Dang .. shoulda checked first ... 10,000 shouldn't fail: Smallint -32768 .. 32767 -- DSK Posted with 1.19.1.269