Unique total for each row

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tony.stevens5@gmail.com

    Unique total for each row

    Hi

    Apologies if this is not in the right area but first time for posting
    here.

    I know how to add up amounts on a form to create a total for a line
    but the database i am working on needs the total to be unique for each
    row i put amounts in. What is happening is that when i put in amounts
    in row 2 then it adds that along with row 1...etc etc.

    On the form i put in the unbound box (called Total) the following
    code...

    =Sum([example1]+[example2]-[example3]) This, as stated above will
    give a total amount. Example is not the name of the fields but only
    used to show the format of the code i have used.

    Could one of you Access gurus take the above and show me the correct
    format so each row keeps its own totals; hopefully using the same
    unbound box for Total on the form....unless what i require as to be
    done using a query of Crosstab.

    Queries are not a problem for me if they have to be used but i have
    never used CrossTabs yet so please give me clear instructions if that
    is the only/best route to take....or give me the form version to get
    going and another method so i have something to look forward to if its
    a better route to take.

    Your help is appreciated.

    Thankyou.

    Tony

  • tony.stevens5@gmail.com

    #2
    Re: Unique total for each row

    Hello Allen

    Thanks for the help.

    My database uses two tables, the main uses a list of staff where the
    staff number is unique and that is linked to staff number in the
    subform where it can be repeated...henc e why staff are repeated when
    more than 1 claim is put in. Even though i have learnt more about
    Access over the year there are just little bits where a good example
    can work wonders....or help where other are willing to help others,
    like here.

    I would like to know more about CrossTabs and i'm sure that will come
    about eventually. Do you know of any site where you can use examples
    so you can work on particular areas of Access, CrossTabs in this case?


    Once again, thank you.

    Comment

    • Allen Browne

      #3
      Re: Unique total for each row

      <tony.stevens5@ gmail.comwrote in message
      news:b822b96f-8882-4cf1-8978-a86a0833d798@u7 2g2000hsf.googl egroups.com...
      >
      I would like to know more about CrossTabs and i'm sure that will come
      about eventually. Do you know of any site where you can use examples
      so you can work on particular areas of Access, CrossTabs in this case?
      Here's a starting point:
      Crosstab query techniques
      at:


      You can create the example query using the Northwind sample database that
      installs with Access.

      --
      Allen Browne - Microsoft MVP. Perth, Western Australia
      Tips for Access users - http://allenbrowne.com/tips.html
      Reply to group, rather than allenbrowne at mvps dot org.

      Comment

      Working...