Full Version: input mask question
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
Loosh
Hi. I have input masks for many of my text boxes on my form. When I click inside the text box the cursor stays on that character I clicked on. So, if I enter in a value, it starts at where I clicked inside the box, not at the beginning. In other words, do you always have to click at the very start of the text box to input your value? Not a big deal, just kind of annoying that it does that.

Thanks

Andrew
freakazeud
Hi,
check this site!
HTH
Good luck
jmcwk
Look at tools>Options >keyboard

Edited by: jmcwk on Tue Dec 19 10:16:10 EST 2006.
Loosh
Neither of these seems to be working. I tried the getfocus where the selstart = 0 but that isnt working either. I've treid all the options under keyboard also. Thank you for pointing me out to them though.

Andrew
jmcwk
What are your Input Masks? And I assume they are set at the table level I never have them set at the table level as I have read that it can present problems???? I am not to sure if they (input masks) are overiding the :

Private Sub YourControlNameHere_GotFocus()
Me!YourControlNameHere.SelStart = 0
End Sub

Or the Tools>Options>keyboard settings ?
Loosh
They are just regular input masks I made under properties> input mask. Like 9999 and CCCC. Things like that for the text boxes.
jmcwk
hmmmmm.......can you attach a zipped copy of your db no larger than 500kb and no sensitive data?
Loosh
Sure. I just copied the form into a new empty db.
jmcwk
Can not really tell from what you attached as there is no record source for the form however tabbing trough the form the curser is at the beginning of the controls ????
Loosh
Oh I meant when I click somewhere inside the box using the mouse cursor. Thanks for looking!

Andrew
jmcwk
Have a meeting but will return. Sorry to mislead you IF the curser is used then it will react as you described however I very well could be mistaken.

Edited by: jmcwk on Tue Dec 19 11:14:54 EST 2006.
jmcwk
Andrew,

Do not know if this will work but try this on the click event of the control rather than the Got Focus Event.


Me!YourControlNameHere.SelStart = 0
Loosh
Oh yes. Thank you. That worked
jmcwk
Your Welcome, Good Luck with your project sad.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.