vb.net textbox decimals

Hi,

In vb.net I'm trying to save my values with the following decimal format in to an access database but as soon as I type in to the textbox (double number format) the 175.00 becomes 175 and is saved that way also in the database. I'm not using any rounding so I don't understand why the .00 is being removed.

It's a question of preference as the user wants the numbers displayed this way

thank you
FCapoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fernando SotoRetiredCommented:
Please show the code.
David Johnson, CD, MVPOwnerCommented:
Use the Fixed Point with 2 decimals or use "C2" for currency 2 decimals
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim DNumber As Double
        DNumber = Convert.ToDouble(TextBox1.Text)
        Label1.Text = DNumber.ToString("F2")
    End Sub

Open in new window

ArkCommented:
Why not saving as 175 and display as 175.00 (using numeric formats either in VB or Access)?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.