How large are the database records?
One thing you might try is just to follow the advice to create an array of indexes, sort it with SysQuickSort(), and then you could write out the database manually in the specified order, as long as you can count on having the space for two copies of the database (you could fall back to DmQuickSort() if space is short). -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
