M
MikeC
Below is a code fragment from a public procedure contained in a standard
code module. I'm using Access 2002 SP3 and my O/S is Windows XP SP2. I
have copied the code directly from the module into this post with no
modifications.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
'Store the file type extension (.mdb, .mde, .adp, .ade).
strFileType = right(strDB, lngLength - InStrRev(strDB, ".", _
lngLength, vbTextCompare) + 1)
'Create backup database UNC path.
strBUDB = Left(strDB, InStr(strDB, strFileType) - 1) & "_BACKUP" &
strFileType
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
The code appears to be working correctly, but for some reason the "r" in
"right" simply refuses to automatically capitalize as "R". Even if I
manually change the "r" to "R", it reverts back to lower case "r". This
behavior is suspicicious. As you can see, the "L" in "Left" is capitalized.
The strange thing is that I copied the entire procedure to one of my other
mdb files on the same machine and the "r" was automatically capitalized as
"R". So, now I'm wondering if there is something wrong with mdb file that
I'm using. I have already performed a compact/repair and a
decompile/recompile and the problem has not gone away. I have also verified
that the selected references are correct.
Has anyone else had this experience?
code module. I'm using Access 2002 SP3 and my O/S is Windows XP SP2. I
have copied the code directly from the module into this post with no
modifications.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
'Store the file type extension (.mdb, .mde, .adp, .ade).
strFileType = right(strDB, lngLength - InStrRev(strDB, ".", _
lngLength, vbTextCompare) + 1)
'Create backup database UNC path.
strBUDB = Left(strDB, InStr(strDB, strFileType) - 1) & "_BACKUP" &
strFileType
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
The code appears to be working correctly, but for some reason the "r" in
"right" simply refuses to automatically capitalize as "R". Even if I
manually change the "r" to "R", it reverts back to lower case "r". This
behavior is suspicicious. As you can see, the "L" in "Left" is capitalized.
The strange thing is that I copied the entire procedure to one of my other
mdb files on the same machine and the "r" was automatically capitalized as
"R". So, now I'm wondering if there is something wrong with mdb file that
I'm using. I have already performed a compact/repair and a
decompile/recompile and the problem has not gone away. I have also verified
that the selected references are correct.
Has anyone else had this experience?