If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
list box display format
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...... |
#2
|
|||
|
|||
list box display format
On Tue, 10 Jun 2008 21:30:00 -0700, 3Nails
wrote: 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; -- John W. Vinson [MVP] |
Thread Tools | |
Display Modes | |
|
|