Visual Basic Editor question

G

Guest

Hello,

I have a Text Box named txtFirstName

When in the VBE throughout all the code every time I type txtFirstName
the VBE automatically changes is to txtfirstname (changes the capitalization
of the letters) I am pretty sure it is doing this because at some point I
type in txtfirstname & now every time it changes it to that. But I dont want
this to happen I want it to be txtFirstName. I tried a Search & Replace for
the whole entire project to change txtfirstname to txtFirstName. After
changing them all it then reverts right back to txtfirstname. How can I stop
the VBE from doing that or be able to change it in the whole project to be
txtFirstName. What am I missing ?

Any help would be greatly apprciated.

Thank you,
Jeff
 
M

missinglinq via AccessMonster.com

My guess would be that "txtfirstname" is how it appears in the textbox
Property Box where you originally name it. HAve a look.
 
M

Marshall Barton

Jeff said:
I have a Text Box named txtFirstName

When in the VBE throughout all the code every time I type txtFirstName
the VBE automatically changes is to txtfirstname (changes the capitalization
of the letters) I am pretty sure it is doing this because at some point I
type in txtfirstname & now every time it changes it to that. But I dont want
this to happen I want it to be txtFirstName. I tried a Search & Replace for
the whole entire project to change txtfirstname to txtFirstName. After
changing them all it then reverts right back to txtfirstname. How can I stop
the VBE from doing that or be able to change it in the whole project to be
txtFirstName. What am I missing ?


Apparently, VB has remembered the lower case version of a
variable name. I think you can replace that version of the
name by declaring a module level variable with the desired
capitalization, compiling the project and then deleting the
declaration.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top