I want to be able to put all of my database's settings, table layouts, queries forms - in short: everything that is relevant for its structure and behavior - into text files. This is of course to enable me to then track changes via SVN.
This answer offers a great base in that the scripts export/import all database objects as well as relations. I've added support for references, so the reference to my VBA-library DB doesn't get lost on reassembling the DB from text files.
Now to correctly reproduce the DB's behavior, I need to somehow carry over its settings (File - Options - Current Database) as well. There is this article in the MSDN that lists some of the arguments available to Application.GetOption(OptionName as String)
. But this list doesn't seem to be exhaustive with respect to the options available in MS Access 2013. (And I'd like to avoid having to hardcode every option's name...)
Is there a list of OptionNames
for use with Application.GetOption
available via VBA? Or is there another way to export or backup options? Is there a definitive list of all options' names?
Notes
- I'd prefer to somehow obtain a list of available options at runtime, so I can setup the procedure once and forget about it.
- If that's not possible, I'd likely resort to hardcoding the
OptionNames
I deem relevant. It's just neither elegant nor maintenance-free... - The first link's accepted answer advises to check in the stripped-down database stub as well to preserve settings. This would be my last resort, as versioning binary files is - in my opinion - ugly and impractical at best.