Results 1 to 5 of 5
  1. #1
    youba14 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    10

    Calculation in query

    Hello




    I am creating a bd to manage a my shop. I have a [revenue table] and [expenses table]. I would like to create a query to calculate the [Total Revenue] - [total expenditure]


    Enclosed my bd


    Thank you kindly help me

  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,518
    Your db is not attached. I would probably have revenue and expenses in the same table, and use a totals query to get the totals.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    youba14 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    10

    calculation query

    Quote Originally Posted by pbaldy View Post
    Your db is not attached. I would probably have revenue and expenses in the same table, and use a totals query to get the totals.
    Hello
    Yes I try to attached the db but there is a problem. Your solution is ok, but in my case revenue and expenses are in different tables
    thank you

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,397
    As paul suggests, much easier if in one table. If not then create two separate queries to total each table then a third to subtract one query from the other

  5. #5
    youba14 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    10
    ok thank you.

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

Similar Threads

  1. Calculation Field in table vs Query calculation
    By Leonidsg in forum Database Design
    Replies: 18
    Last Post: 02-28-2013, 09:38 PM
  2. Query Calculation
    By Rhubie in forum Access
    Replies: 3
    Last Post: 08-28-2012, 01:41 PM
  3. calculation in a query
    By funi.t in forum Reports
    Replies: 5
    Last Post: 01-25-2012, 05:24 AM
  4. Query calculation
    By Charter in forum Queries
    Replies: 8
    Last Post: 12-30-2011, 11:50 AM
  5. IIF() in a query calculation
    By bbylls in forum Queries
    Replies: 4
    Last Post: 12-03-2009, 04:42 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