Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

ASP difficulty

Options
  • 03-04-2002 8:04pm
    #1
    Registered Users Posts: 2,660 ✭✭✭


    I'm trying to read a currency value from a ms access database using an ASP web page but it refuses to recognise the values after the decimal point. I'm using the following statement to carry out this task:

    <%=FormatCurrency(myproducts("Cost_per_unit"))%>

    However as i said it doesn't recognise the values after the decimal point and i was just wondering if anyone ahs come across this problem before and managed to solve it.


Comments

  • Subscribers Posts: 4,419 ✭✭✭PhilipMarlowe


    Newbie here, but I think you need to tell it how many decimal places you need.. i.e., 2

    Edited Try this:

    <%= FormatCurrency((myproducts("Cost_per_unit")), 2) %>

    failing that, read this for more info...

    :confused:


Advertisement