I'm trying to devise a way to export all code in an Access database as text such that I can use CVS meaningfully when I make changes. Not just VBA code in forms, reports and modules, but also the connection strings and SQL commands for queries, and the list of commands in all macros.
I've done all the VBA and queries, but I can't figure out how to get to macros' commands at all. I've examined all containers and documents in CurrentProject, all the Access objects in CurrentData, everything, and I can't find anything. All I can do is save each macro as a module and then use the module-VBA system I have.
I've seen the Documentor, but all it does is put out a report (I suppose I could send that report to a generic text-file printer driver). But I want to be able to import everything from the text files too, and again, I can do that to remake all queries and the VBA behind all forms, reports and modules. But I couldn't do that with macros converted to modules.
So how would you use VBA to list out all macros' commands?
I've done all the VBA and queries, but I can't figure out how to get to macros' commands at all. I've examined all containers and documents in CurrentProject, all the Access objects in CurrentData, everything, and I can't find anything. All I can do is save each macro as a module and then use the module-VBA system I have.
I've seen the Documentor, but all it does is put out a report (I suppose I could send that report to a generic text-file printer driver). But I want to be able to import everything from the text files too, and again, I can do that to remake all queries and the VBA behind all forms, reports and modules. But I couldn't do that with macros converted to modules.
So how would you use VBA to list out all macros' commands?