by John Brinkman
Here is everything you need to install the macro.
One improvement I’ve made over the previous version is to automatically populate the list of global objects with all the subform and field names in the form. Now it will flag far fewer global objects — and if it does flag a global, you really want to pay attention, since it is very likely an un-declared variable.
I really strongly recommend this tool to you. When you run this against your script you will very likely be surprised at some of the coding errors you’ve made. I know I was.