Solved

formating a textBox

Posted on 2003-12-05
3
356 Views
Last Modified: 2010-05-03
How can I formating a textbox?
In MsAccess the textboxes have a format property, how is it possible to do the same job in VB?
0
Comment
Question by:SaadDani
  • 3
3 Comments
 
LVL 15

Expert Comment

by:JackOfPH
ID: 9880942
Private Texbox1_Change()

textbox1.text = Format(Textbox1.text, "Your format string")

end sub

Example of format string : Format (Textbox1.text, "hh:mm:yyyy") .
0
 
LVL 15

Accepted Solution

by:
JackOfPH earned 100 total points
ID: 9880960
use the masked edit box control! it has a po\roperty of fprmating text!
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 9880961
use the masked edit box control! it has a po\roperty of formating text!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now