Solved

Format Text

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now