Solved

formating a textBox

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 54
MsgBox 2 54
VBA/SQL - Connect to SQL server and pull data 4 108
VBA: Personal Macro Retain/Highlight/Remove values in a selected column 4 30
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

770 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