Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Displaying Currency on a Web Page

$
0
0
I have an Access Database that contains a field "Price" formatted as follows:

DataType: Number
Field Size: Decimal
Format: Currency
Precision: 18
Scale: 0
Decimal Places: 2

I have entered a value, e.g., 59, into the database record. When I look at the field in the Database it appears as $59.00.

On my web page I have the following code:

<% Response.Write(rs.Fields("Price").value)%>

All that is output is 59

What do I have to change/do to get the output to be $59.00?

Viewing all articles
Browse latest Browse all 688

Trending Articles