Decimal places in data

  • Thread starter Thread starter Ian
  • Start date Start date
I

Ian

I wonder if anyone can help. I have a FP page that collects data from an
Access database using the Database connector. This works fine. The data
returned does not allow you to change the number of chars after a decimal
place, e.g. 111.10 is 111.1. Does any body know a way of making FP include
the '0' into the value.

Many thanks

Ian
 
Enter the following on your page where you want it displayed in HTML view

<%=FormatNumber(recordset("Fieldname"),2)%>

Replace recordset and fieldnaem with your values.
The 2 indicates the number of decimal places.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Thomas,

Many thanks for your help, one minor question. Where can I find the
recordset value ?

Regards

Ian
 
If you are using the FP database component, it would be something like
fp_db, I think, I never use it.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top