Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format report field as currency?

Status
Not open for further replies.

Spyder1000

Technical User
Nov 2, 2004
109
US
I use the standard:
Code:
<%=RS("cost")%>

to pull a dollar figure from my table. i'd like the field to display as a dollar amount on the webpage. any help would be greatly appricated.
 
Thanks. I found that on google in an earlier search. I guess I don't understand how to combine

Code:
<%=RS("cost")%>
with
Code:
<% =FormatCurrency(31567, 2) %>
 
this is how you do it:

<%=FormatCurrency(RS("cost"),2)%>

that gives you 2 decimal digits..so change it accordingly...

-DNG

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top