Results 1 to 10 of 10
  1. #1
    mrbob2 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jan 2010
    Posts
    5

    Newbie format number problem

    Hi, I have a Computerized Maintenance Management System (CMMS) and I am trying to build some queries to better understand the data. I built a querie that returns the information I want except that the numbers have 13 digits to the right of the decimal point.


    The format function does not work and I tried to write an expression to change it but I seem to be missing something.
    Here is a copy of the querie.
    workorders Query2AssetNoSum Of DownTimeA1010.866666666666667A1020.65A1035.48333333333333A1051B1015.91666666666667Bano12CH0050.333333333333333E5031.33333333333333E5051E5061E5071E5081.25E5094E5100.583333333333333G1010.833333333333333G1030.833333333333333H10018.95H10155.8166666666667H10218.0333333333333HL1000.25I1007.01666666666667I10114.7666666666667I10219.1166666666667L1011.21666666666667L1020.366666666666667M1020.666666666666667M1051.25M1061M1080.5PT10.8PT20.75RG1013TM021TM040.166666666666667V1000.5W1000.433333333333333W1012W1022.5W1050.5W1071W1081.63333333333333WV129.1666666666667

    Thanks, Bob

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You may want to post again. I doubt it turned out the way you intended.

  3. #3
    mrbob2 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jan 2010
    Posts
    5
    Hi, I have a Computerized Maintenance Management System (CMMS) and I am trying to build some queries to better understand the data. I built a querie that returns the information I want except that the numbers have 13 digits to the right of the decimal point.
    The format function does not work and I tried to write an expression to change it but I seem to be missing something.
    I wrote:
    format ("Sum Of Downtime","0.0")
    I also tried:
    format (Sum Of DownTime: DownTime, [fixed]) this gave me an error that said the-
    words need to be in " " This gives me a expression drop down box when I open the querie. It is asking for a input
    Here is a copy of the querie.
    ------------------------------------------------------
    | AssetNo | Sum Of DownTime: Downtime |
    ------------------------------------------------------
    | A101 | 0.866666666666667 |
    ------------------------------------------------------
    | A102 | 0.65 |
    ------------------------------------------------------
    | A103 | 5.48333333333333 |
    ------------------------------------------------------
    | A105 | 1 |
    ------------------------------------------------------
    | B101 | 5.91666666666667 |
    ------------------------------------------------------
    | Bano1 | 2 |
    ------------------------------------------------------
    | CH005 | 0.333333333333333 |
    ------------------------------------------------------
    | E503 | 1.33333333333333 |
    ------------------------------------------------------

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Welcome to the site Bob. How about posting the SQL for your query so we can look at it?

  5. #5
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    Hi mrbob2,

    Open your query in design view. Right click on your "Sum Of DownTime: Downtime" field column and select "Properties".

    When the Field Properties are displayed, enter your desired format (Fixed?) on the Format row.

    Close the Field Properties dialog box, and rerun your query.

    Cheers,

  6. #6
    mrbob2 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jan 2010
    Posts
    5

    Sql

    Hi, Here is a copy of my Query. I hope this is what you want.
    Thanks, Bob

  7. #7
    mrbob2 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jan 2010
    Posts
    5

    No Properties

    I thought that was all I needed to do but there is no properties option in the right click of this field.???

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's what ConneXionLost was suggesting.

  9. #9
    mrbob2 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jan 2010
    Posts
    5

    Thumbs up Duh i am dumb

    Thanks for showing me that I am a F#$^*ng bone head. I totally forgot about doing that in design view. I could not understand why I was having such a hard time with such a simple task.
    Thanks again for all your help,
    Bob

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Just glad we could help Bob.

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

Similar Threads

  1. Field switching from Number format to Text
    By COforlife in forum Queries
    Replies: 1
    Last Post: 11-10-2009, 03:23 PM
  2. Replies: 4
    Last Post: 08-27-2009, 01:21 AM
  3. Excel number format not working in Access
    By toad848 in forum Access
    Replies: 3
    Last Post: 03-24-2009, 11:06 AM
  4. Replies: 1
    Last Post: 03-12-2009, 09:55 AM
  5. Sum Of Positive Number and Negative Number
    By maysamab in forum Reports
    Replies: 1
    Last Post: 10-20-2008, 04:06 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