Results 1 to 4 of 4
  1. #1
    JackieEVSC is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    70

    Insert decimal into number field

    I'm pulling data from a table that I cannot change, so I have to format it through a query. The field is a number field. I'm needing the value of "500" to format as $5.00.


    I've tried changing the field type to currency, but it adds two zero's on the end ... so instead of "$5.00", I get "$500.00". I've tried to tell it to use two places after the decimal, but since there is no decimal point, I still just get "500". I've tried ###.## ... I still get "500". I've tried $###.##. Same thing. $000.00 ... same thing.


    I know it's simple, but I cannot figure out how to format this!! Any help would be appreciated.

    Jackie

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    If it's always two decimal places with an implied decimal point, just divide by 100 and display as currency:

    format([value]/100, "Currency")

    so format(103228/100.,"currency") will give you $1,032.28

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    How about formatting as currency and divide by 100
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    JackieEVSC is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    70
    I knew it was simple. Thank you very much

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access: Format Whole Number into Decimal
    By Access_throwaway in forum Access
    Replies: 9
    Last Post: 12-03-2016, 11:16 AM
  2. Replies: 3
    Last Post: 10-28-2015, 12:09 AM
  3. Converting a Number to Decimal
    By lwilt in forum Access
    Replies: 5
    Last Post: 10-11-2013, 05:02 PM
  4. Replies: 5
    Last Post: 07-18-2013, 01:43 PM
  5. Replies: 0
    Last Post: 10-22-2012, 02:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums