Showing Currency Values

Showing Currency Values

Question:
I am using VB as a front-end to an Access 2.0 database. Some of the fields in my Access db are of type currency. However, VB only displays them as numbers (I am not using data bound controls to populate the fields on my form, I am using code). How can I get VB to display them as currency (i.e with the dollar sign and decimal point)?

Answer:
You can use the Format() functions to convert them to strings. Look at the help for those functions for more information.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist