I just copied Dave’s code into a blank report and it compiled just fine.
That said, this utility that I presented at the User Conference last year that offers an alternative approach to Dave’s code. Instead of writing out to text file, the information is recorded in a VBA data provider of a BusObj document. That way you have all of the reporting capabilities of BusObj. You may also have some interest in the code itself as an “academic” exercise.
Dwayne Hoffpauir (BOB member since 2002-09-19)