I'm trying to write a VBA script to export all of the VBA code in a given file to plaintext files for version control. I've already solved that part thanks to a bunch of answers and google results .
However, I'm now looking to automate this process for MS Access. I've done it successfully in Excel by putting code in the ThisWorkbook
module which runs on the Workbook_BeforeSave
event.
However, I've been unable to find any analog to ThisWorkbook
in MS Access.
So the question is:
How can I execute VBA on the BeforeSave
event in Access?
I'd like this to run on either a save in MS Access or a save in the VBA Editor.
Thanks