Solved

Format Text

Posted on 2006-11-26
3
142 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

Technology Partners: 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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

733 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