V
victorcamp
Where and how does the Visual Basic Editor in Access save its capitalization
conventions for user-defined variables and constants?
By that I mean: When I declare a variable or constant, every instance of it
automatically matches the capitalization of the declaration. That's good. If
I later change that variable/constant, they all snap into the new format.
Also good. However, if a field name, for example, happens to match that
original spelling, it will snap into that now-gone format, regardless of the
field's own capitalization in the table.
For example:
Const CUST_ NAME As Integer = 0
Later I change that to:
Const CUST_DESC As Integer = 0
"CUST_NAME" now no longer exists in the code.
Then I use a field name in the code:
strRetVal = rst![cust_name]
The VB Editor immediately flips it to:
strRetVal = rst![CUST_NAME]
Nothing I do can force it to leave it as written!
conventions for user-defined variables and constants?
By that I mean: When I declare a variable or constant, every instance of it
automatically matches the capitalization of the declaration. That's good. If
I later change that variable/constant, they all snap into the new format.
Also good. However, if a field name, for example, happens to match that
original spelling, it will snap into that now-gone format, regardless of the
field's own capitalization in the table.
For example:
Const CUST_ NAME As Integer = 0
Later I change that to:
Const CUST_DESC As Integer = 0
"CUST_NAME" now no longer exists in the code.
Then I use a field name in the code:
strRetVal = rst![cust_name]
The VB Editor immediately flips it to:
strRetVal = rst![CUST_NAME]
Nothing I do can force it to leave it as written!