Results 1 to 4 of 4
  1. #1
    Heatshiver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    128

    Question 1) Sum of Calculated Cost 2) Dollar Sign/Decimals?

    I have a report where there is a cost calculated from price multiplied against quantity. This expression works perfect.

    1) I am trying to sum the total of all the costs on the report as there are multiple items with varying costs.

    a. I thought that I could at first place it in the query that populates the record, but I can't use the cost box as it is not a field in the table.

    b. I then thought I could add it to the table as a calculated field, but I cannot use the cost box there since it does not already exist in the table (and I can't seem to use the Sum function for the calculation...?).

    c. I tried to add a box to the report that had the expression "=Sum([Cost])" as I named the cost box "Cost". But this did nothing when I previewed the report.

    What am I doing wrong, and how should I go about this? I thought this would be so much easier.

    2) I also can't seem to get a dollar sign ($) or decimal places for my cost.

    a. I thought that maybe I could use an Input Mask, but there is nothing preset for currency, just dates and telephone numbers.

    b. I tried to add a box with just a $ sign in it, but it acts as code and hinders the report from working.



    Is there a simple way that I can show the dollar sign along with commas and decimals on my report?

    Sorry for the hassle as I'm sure this is simple and I'm overlooking some item. Thank you for the help!

  2. #2
    bcofie is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    31
    To solve (2), go in design view, double click control with cost to open up properties and format as currency.
    To solve (1), in design view, use "Total" in the Groupings & Totals ribbon.

  3. #3
    Heatshiver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    128
    @bcofie Thank you so much! I knew the 2nd one was something easy.

    As for the 1st one, when I click on Total, it only allows for "Count Records" as an option, I can't seem to total all the amounts for my cost box.

  4. #4
    Heatshiver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    128
    I think I got the first part working. Building on =SUM([Cost]), I realized that I could just instead put in the calculation of cost rather than use its name: =SUM([Sum of Quantity]*[Price])

    This seems to be working. Thanks for the help!

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

Similar Threads

  1. Pull maximum dollar amount in a paragraph
    By WSUAccess in forum Queries
    Replies: 5
    Last Post: 09-26-2011, 01:31 PM
  2. Replies: 35
    Last Post: 09-19-2011, 10:13 AM
  3. Round Up/Down 4 Decimals to 2
    By newbie in forum Access
    Replies: 6
    Last Post: 10-18-2010, 02:58 PM
  4. Replies: 2
    Last Post: 08-19-2010, 09:33 AM
  5. Replies: 4
    Last Post: 03-31-2010, 03:41 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