I have written the following code and it works fine but is there any way we can display 10 under scores ( like input mask so the users will know they need to enter 10 digits??)
Code:
Private Sub txtAccount1_Change()
Static abort As Boolean
Static c
If abort Then: abort = False: Exit Sub
With txtAccount1
c = c + 1
abort = True
.Text = Left(.Text, 10)
End With
End Sub
How can I use input mask to allow 10 digits in a textbox? I just tried the below code which won't let users enter more than 10 digits but I want to show 10 underscores (input mask)
Code:
Private Sub txtAccount1_Change()
Static abort As Boolean
Static c
If abort Then: abort = False: Exit Sub
With txtAccount1
c = c + 1
abort = True
.Text = Left(.Text, 10)
End With
End Sub
I see. I did not realize that since you posted your question in an Access forum. No wonder I couldn’t understand what the problem was. Unfortunately, I am not familiar with Outlook controls to be able to offer any further suggestions. Good luck.