textbox format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to format the text, eg. date (mm-dd-yyyy), in textbox of
control toolbox?
 
You can use

With Me.TextBox1
If IsDate(.Text) Then .Text = Format(.Text, "mm-dd-yyyy")
End With


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Will I put this in the code?
Thanks

Rook


Bob Phillips said:
You can use

With Me.TextBox1
If IsDate(.Text) Then .Text = Format(.Text, "mm-dd-yyyy")
End With


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
That depends upon your design, where you want the date formatted.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top