Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How to show ***-**-****

11 views
Skip to first unread message

Rick B

unread,
Sep 21, 2005, 8:53:06 AM9/21/05
to
This same question was posed on the 16th and 19th in the Forms coding
newsgroup. Go check out the responses there. Doug Steele, a very
knowledgeable MVP, stated that he does not think it is possible.

--
Rick B

"pokdbz" <pok...@discussions.microsoft.com> wrote in message
news:941990EE-C60D-4758...@microsoft.com...
> I have a text box with this 000\-00\-0000;;* as the input mask. When the
> form is opened nothing is showing in the text box. I would like
***-**-****
> to be in the text box. But only when I click on the text box it brings up
> ***-**-****. I tried to set the focus on the text box and that didn't
work
> just has a blinking cursor.
>
> So is there a way to show ***-**-**** as the input mask in the text box
> without clicking on it.
>


James A. Fortune

unread,
Sep 21, 2005, 3:20:23 PM9/21/05
to
pokdbz wrote:
> I have a text box with this 000\-00\-0000;;* as the input mask. When the
> form is opened nothing is showing in the text box. I would like ***-**-****
> to be in the text box. But only when I click on the text box it brings up
> ***-**-****. I tried to set the focus on the text box and that didn't work
> just has a blinking cursor.
>
> So is there a way to show ***-**-**** as the input mask in the text box
> without clicking on it.
>

I tried:

Private Sub Form_Load()
txtField.SetFocus
txtField.SelStart = 0
End Sub

It seemed to do what you want.

James A. Fortune

0 new messages