Avatar of supercoqui
supercoqui
Flag for United States of America asked on

change textbox to currency on a bind ADO.NET

Ok i did binding of a database MS access file to my form. It displays the data in textboxes. Now i am trying to make the currency textbox display th data form the database fiel in currency. Any help?
Visual Basic.NET

Avatar of undefined
Last Comment
supercoqui

8/22/2022 - Mon
ZeonFlash

After you bind the textbox, try this:

TextBox1.Text = FormatCurrency(TextBox1.Text, 2)
ASKER CERTIFIED SOLUTION
Sancler

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
supercoqui

ASKER
Thanks, I also found you can change it on the form properties on the solution explorer. Basically you have to select data bindings and go to advance. You can change the way the data is presented. cheers

Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes