Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

formating a textBox

Posted on 2003-12-05
3
360 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to create a duplicate finder Application 9 122
Validating VB6 Function 19 65
MS Date Picker 64 bit 32 bit issue 12 60
VBA: loop recent folder and copy txt file. 8 33
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

840 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