Results 1 to 6 of 6
  1. #1
    RedGoneWILD is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    105

    calculated field from calculated field?

    I have a report that is grouped by an ID number as a header, then a detail section displaying that relates to the ID number. There are two currency fields, and a calculated field which displays the sum of the two currency fields for each record.



    Then I have a footer of the ID number which has a calculated field, which I want to be able to total the calculated field for all records in that group. What's the easiest way to achieve this?

    example of report layout:

    IDNumber
    ...............Person........currency1......curren cy2.......totalCurrency
    .................................................. ..................sum Of Total Currency


    totalCurrency = sum of currency1 & currency2

    sum of Total Currency = sum of all total Currency in that group


    I have totalCurrency calculated field working...that was easy....it's the sum for the group i'm having trouble with

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You can't sum the calculated textbox if that's what you're trying to do. Presuming the total is

    =Currency1 + Currency2

    the sum would be:

    =Sum(Currency1 + Currency2)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    RedGoneWILD is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    105
    u know what amazes me is that i swear i just did that and it didnt work...must have been something wrong with my syntax but i used the sum() function...unbelievable

    then i go and spend 5 minutes making a thread about it, and then looking like an idiot because it works like i thought it would the first time

    thanks again...im sure i'll need your help many more times for simple stuff like this

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    No problemo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    Pbaldy's good at making people feel that way. I know he does it to me all the time.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Is this about the "idiot" thing? If so, I resemble that remark!

    If I make anybody feel like an idiot, it's probably because I feel like an idiot a lot, and it may be contagious.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Calculated field
    By nashr1928 in forum Forms
    Replies: 9
    Last Post: 08-01-2010, 01:59 PM
  2. Calculated field
    By nashr1928 in forum Forms
    Replies: 3
    Last Post: 07-22-2010, 05:10 AM
  3. Sorting a Report by a Calculated field
    By mulefeathers in forum Reports
    Replies: 1
    Last Post: 05-22-2010, 08:21 PM
  4. union query with a calculated field
    By grad2009 in forum Queries
    Replies: 9
    Last Post: 03-31-2010, 04:50 PM
  5. Formatting a Calculated Field
    By e_lady333 in forum Queries
    Replies: 0
    Last Post: 03-17-2010, 06:11 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