![]() |
| |||||||
| Sponsored Links |
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
| Hey All, I have a currency field in SQL 2000 - money(8) in my table with value ex: 117000 and in ASP, I have the following: Code: <TD bgcolor="#E0FFFF" align=center><%=formatcurrency(rs("ItemCost"),0)%></TD>
Is this possible? Thanks! |
| Sponsored Links |
|
#2
| ||||
| ||||
| Divide it by 1000 first and take the integer of the result. |
| The Following 2 Users Say Thank You to Wolffy For This Useful Post: | ||
jmurrayhead (May 27th, 2008), Rebelle (June 17th, 2008) | ||
|
#3
| ||||
| ||||
| Thanks Wolffy! Here is what I did and it looks good, like $117. Code: <%
intItemCost = rs("ItemCost")
intItem = FormatCurrency((intItemCost / 1000),0)
%>
Code: <TD bgcolor="#E0FFFF" align=center><%= intItem %></TD> |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|