Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2003
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    MSSQL formatting money field

    I have a money field in a MSSQL database. When I enter a price of 10.50, it formats to 10.5

    When I run a query to display this on an asp page it displays 10.5 instead of 10.50

    How can I get it to display 10.50?

  • #2
    Regular Coder
    Join Date
    Jan 2005
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts
    either use FormatNumber or FormatCurrency if you want dollar signs
    Code:
    FormatNumber(field_name,2) or FormatCurrencty(field_name)

  • #3
    New Coder
    Join Date
    Oct 2003
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you! It worked perfectly! Much appreciated!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •