?
Solved

Format Text

Posted on 2006-11-26
3
Medium Priority
?
149 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 93

Accepted Solution

by:
Patrick Matthews earned 500 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 93

Expert Comment

by:Patrick Matthews
ID: 18016420
teogos,

You're welcome :)

Regards,

Patrick
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

800 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