I have an unbound control where the user is required to input a number. To make checking for numbers-only easier, I've set an input mask for that control, however that causes another side-effect.
For visual purposes, the control is left-justified and longer than the allowed number of digits, so if you click on that field, the cursor tends to be at the right-end of the mask. Which means that if you just click and start typing, then nothing happens, as you are already at the end of the mask - you have to backspace into the mask and *then* enter your number. Its very annoying and it doesn't matter if the mask fill is set left-to-right or right-left.
Is there a way to position the cursor in the control at the very beginning? I can put that routine in the Click event of the control, so that typing always begins at the left-side, but I'm not sure how to code for that.
I'm not pleased with the way masking works in Access anyways, so I have an alternate solution I think. Can I use the Change event, such that if a non-numeric character is typed, it causes an automatic backspace to occur to delete it? I think I like the aesthetics of that better, but not sure how to code the backspace to occur either.
Thanks in advance
For visual purposes, the control is left-justified and longer than the allowed number of digits, so if you click on that field, the cursor tends to be at the right-end of the mask. Which means that if you just click and start typing, then nothing happens, as you are already at the end of the mask - you have to backspace into the mask and *then* enter your number. Its very annoying and it doesn't matter if the mask fill is set left-to-right or right-left.
Is there a way to position the cursor in the control at the very beginning? I can put that routine in the Click event of the control, so that typing always begins at the left-side, but I'm not sure how to code for that.
I'm not pleased with the way masking works in Access anyways, so I have an alternate solution I think. Can I use the Change event, such that if a non-numeric character is typed, it causes an automatic backspace to occur to delete it? I think I like the aesthetics of that better, but not sure how to code the backspace to occur either.
Thanks in advance