Results 1 to 3 of 3
  1. #1
    FinChase is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    20

    Number conversion


    I need to convert a number that is currently formatted as Double to a 7-digit format without decimail points. Using a query, I can create the calculated field to get rid of the decimal point, but I need for the field to be 7 digits long, with leading 0s to make up all 7 digits.

    For example, 153.15 should become 0015315. I can only get it as far as being 15315. Is there a way I can set Properties to format this field, or is there another expression I can add to my calculation? I'm multiplying the source field by 100 to get rid of the decimal.

    Any help will be appreciated as I'm stuck on this step.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Try:
    Format(153.15 * 100, "0000000")
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    FinChase is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    20
    That worked! Thanks so much!

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

Similar Threads

  1. Type Conversion Failure
    By fpmsi in forum Access
    Replies: 7
    Last Post: 09-22-2011, 11:25 AM
  2. UM Conversion
    By Rawb in forum Database Design
    Replies: 5
    Last Post: 01-24-2011, 04:02 PM
  3. Time Conversion
    By jsevilla in forum Access
    Replies: 1
    Last Post: 01-23-2011, 02:01 PM
  4. Conversion in Access table
    By Lucas83 in forum Access
    Replies: 1
    Last Post: 04-06-2010, 11:51 AM
  5. Conversion from Excel to Access
    By TMG in forum Import/Export Data
    Replies: 1
    Last Post: 10-20-2009, 12:48 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