Results 1 to 8 of 8
  1. #1
    polis is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    20

    how to format the dsum value?

    Hello guys i have a query that runs a dsum calculation



    RunningTotal: DSum("[AverageHourlyRate]*[ManHours]","LaborCostingQuery"), and i dont have options in the fields property to format the value (i.e Euro)

    Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,618
    What is your question - what is the issue - error message, wrong results, nothing happens? This calc will provide a sum for ALL records in the table. Is that what you want?
    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
    polis is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    20
    Yes i have the values that i need, but i want to set the format property of those values to and in property box the are no options available.

  4. #4
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    When I open a query in design view and right click on a field and select properties, I have the option in the format line, I can select Euro. Is this not available to you?

    Alan

  5. #5
    polis is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    20
    Thanks alansidman
    It is available for every other field except the one i am calculating the dsum

  6. #6
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    I cannot replicate your issue. Perhaps it is time for you to post a copy of your database to this forum. Be sure to sanitize it for confidential information and only put a sample of your data (not the full data). Be sure to run a compact and repair to reduce the size before posting. Once we see it, we can analyze what is happening and give you some answers.

    Alan

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,618
    No options are available because the value returned by domain aggregate function is a string. The query doesn't know this is a number. Use Val function to convert the value to a number then the options will be available or do the formatting in a form or report textbox.
    Val(DSum("[AverageHourlyRate]*[ManHours]","LaborCostingQuery"))
    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.

  8. #8
    polis is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    20
    aha .... thanks alansidman and june7 for your answers, now is working perfect

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

Similar Threads

  1. Help with Sum and DSum
    By objNoob in forum Reports
    Replies: 5
    Last Post: 12-05-2011, 01:55 AM
  2. issues with DSum
    By ozdemirozgur in forum Access
    Replies: 3
    Last Post: 05-08-2011, 02:48 PM
  3. Problems with DSum
    By Jackie in forum Access
    Replies: 1
    Last Post: 03-27-2011, 05:21 PM
  4. How do I use the DSum
    By Ironclaw in forum Access
    Replies: 1
    Last Post: 08-25-2010, 07:35 AM
  5. Help with dsum
    By bjsbrown in forum Reports
    Replies: 6
    Last Post: 02-06-2010, 09:33 AM

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