I am using Access 2007, and this behavior can be replicated as follows.
1) Create a new accdb access database file.
2) Open the database and create a new vba module.
3) Create the 1st subroutine sub1:
Sub sub1() Msgbox Err.Description End Sub
4) Create a second sub2 routine:
Sub sub2(Description as String) Msgbox Description End Sub
At this point, everything is fine.
5) But if I go and change sub2 so that "Description" reads "description", i.e. Changed "D" to "d" like this:
Sub sub2(Description as String) Msgbox Description End Sub
It also has the effect of tapping and changing sub1 too! So sub1 now reads:
Sub sub1() Msgbox Err.Description End Sub
Why is Err.Description changed to Err.description?
This behavior does not seem to affect the actual functionality of the code, so there is no problem. The big problem is that I export my vba modules as text files and put them under SVN control. And most recently, because of this, a whole load of meaningless "changes" was recorded in the repository.
Any ideas on how to stop this?
David source share