My macro is creating an export file for another application. In order for export records to be in sorted order, I have to COMPACT DATABASE first. Works great using menu's - but doesn't work within macro (runcommand - compactdatabase). Any ideas? (I'm on ACCESS 97).