I'm new to Access 2007. I have a database with fields that have default text in them. When I tab to those fields, it selects all the text and puts the cursor at the beginning. I want it to automatically put the cursor at the end of the default text.
All I should have to do is count the length of text that's in the box and then move to that number, right?
So here's what I have done to try to do that...
I go to the properties of that box, click on the "On Enter" procedure and selected code. It takes me to the code screen, and I type:
And then I close the code screen. It should work, right?
Well it doesn't. It doesn't do anything differently. So, something isn't right.
So, next, just for the sake of debugging, I didn't get the length, I just set it to a number, like this:
It should put the cursor at the 3rd character, simple enough...
It doesn't work either.
I don't know what else to try...
Please help...
All I should have to do is count the length of text that's in the box and then move to that number, right?
So here's what I have done to try to do that...
I go to the properties of that box, click on the "On Enter" procedure and selected code. It takes me to the code screen, and I type:
Code:
Private Sub Extra_Info_Enter()
Me!Extra_Info.SelStart = me!Extra_Info.SelLength
End Sub
Well it doesn't. It doesn't do anything differently. So, something isn't right.
So, next, just for the sake of debugging, I didn't get the length, I just set it to a number, like this:
Code:
Private Sub Extra_Info_Enter()
Me!Extra_Info.SelStart = 3
End Sub
It doesn't work either.
I don't know what else to try...
Please help...