list box display format

  • Thread starter Thread starter 3Nails
  • Start date Start date
3

3Nails

I have the following code: SELECT [TBL Pricing Data Initial
Delivery].ID_Desc, [TBL Pricing Data Initial Delivery].ID_Rate FROM [TBL
Pricing Data Initial Delivery] ORDER BY [TBL Pricing Data Initial
Delivery].ID_Desc;

The ID_Rate original source is standard with 2 dec. For a value of 4,321.50,
the list box will only display 4321.5 . How can I get it to display the
comma and the trailing zero? Thanks......
 
The ID_Rate original source is standard with 2 dec. For a value of 4,321.50,
the list box will only display 4321.5 . How can I get it to display the
comma and the trailing zero? Thanks......

Use an explicit Format() function call:

SELECT [TBL Pricing Data Initial Delivery].ID_Desc,
Format([TBL Pricing Data Initial Delivery].ID_Rate, "#,##0.00")
FROM [TBL Pricing Data Initial Delivery]
ORDER BY [TBL Pricing Data Initial
Delivery].ID_Desc;
 
Back
Top