Solved

Format Text

Posted on 2006-11-26
3
143 Views
Last Modified: 2010-04-30
A text box get the text from and access database which in turn get the data from a DBF database, Anyhow one of the fields of this data supposed to have  a price which means like 2.45 or 4.67 etc..  however this data get into access without the decimal place and when I get into Visual basic also get without the decimal place. How can I get this format into a 2.45 or 4.67 etc into a textbox, knowing that always there two decimals. I don't want to touch the access or DBF databases I want to deal directly with VB and the textbox format
0
Comment
Question by:teogos
[X]
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
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 125 total points
ID: 18016338
Hi teogos,

TheForm.TextBox1.Text = Format(DatabaseField / 100, "#,##0.00")

Regards,

Patrick
0
 

Author Comment

by:teogos
ID: 18016383
Thanks
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 18016420
teogos,

You're welcome :)

Regards,

Patrick
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

726 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