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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assuring 2 zeros after decimal point 1

Status
Not open for further replies.

guyphil

Programmer
Nov 2, 2004
27
IL
Hi,

If I have the number "1.00" in a database (Data Type:Number)

How do I have show up as "1.00" on a web page and not "1"

Ive tried changing the different parameters in Access(Field Size, Format, Position) but nothing has worked yet.

Can this even be done through Access or will I have to add the zero's to the end of the string in ASP?

Thanks,

GuyPhil
 
BTW,

How would I implement this in the following:

<%= rs.(FormatNumber(Fields("MyNum").Value),4)%>--This doesn't work.

<%= rs.(Fields(FormatNumber("MyNum"),4).Value%>-- Neither does this.


Thanks

Guyphil
 
it's in the wrong order. you need to format the value of the field in the recordset.

FormatNumber(rs.fields("column"),4)



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top