Hack,

This procedure was run using Access VBA 2002/2003. I just tested it with Excel 2003, and it worked. Added benefit with Excel would be that the Mod function is a Worksheet function, as opposed to a backend function --- however, I tested it with the VBA built-in Mod function, not the Excel Worksheet function.

Jeremy