decimal numbers in list box...

M

Miranda

hi, i've got a text box that displays a whole heap of stuff including some
decimal numbers. the values are pulled from a table where the field is set
as having decimal number type and with only 1 decimal place...the numbers
are displayed correctly in my table..however when they are displayed in the
listbox on my form they have two decimal places. does anyone know how to set
it so the listbox shows only 1 decimal place for the number fields???

Thanks!!
miranda
 
A

Allen Browne

Use a query as the RowSource for your listbox.

In the query, use Format() to specify how the field should look.

Example:
ShowMyField: Format([MyField], "#,##0.0")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top