Results 1 to 3 of 3
  1. #1
    avv is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    1

    Exclamation Consolidating Same Clinic Names

    Hello,

    I am working on a project for work. I have my excel document imported. Now I have to join the same clinic names together.



    For example I have three separate orders for "ABC Clinic". How do I join them in one so the total sales is combined as well.

    Thank you for your help!!! I have to solve this soon to turn in!

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Create an Aggregate (Totals) Query.

    Just to the following steps to do this:
    - Create a new query based on your table
    - Add the "Clinic Name" and "Sales" fields to this query, and nothing else
    - Click on the Totals button in the Query Builder (looks like a Sigma) - this will add a Totals row with the phrase "Group By" under both fields
    - Change the "Group By" value to "Sum" under the "Sales" column
    - View your results

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    usu, an order is 1 record, and the other table ,tOrderDetails , have several detail recs. (not knowing your layout)
    so the query usu:
    select both the tOrder table and tOrderDetail tables.
    Join on OrderID field.

    If yours is like this, then the CLINIC name should also be part of tOrder table.
    Once you make Q1 to see ALL records,
    Make Q2 to sum them all from Q1.

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

Similar Threads

  1. Text Box Search Having Issue Finding Name of Clinic
    By CharissaBelle in forum Forms
    Replies: 7
    Last Post: 04-17-2017, 03:50 PM
  2. Consolidating Records
    By OldUser in forum Queries
    Replies: 2
    Last Post: 10-03-2011, 05:13 PM
  3. Consolidating Code
    By eww in forum Programming
    Replies: 4
    Last Post: 02-08-2011, 10:26 AM
  4. USG Clinic exam system: Changing User
    By isnpms in forum Access
    Replies: 2
    Last Post: 08-22-2010, 07:31 PM
  5. clinic database
    By jeanmhealy in forum Database Design
    Replies: 2
    Last Post: 08-22-2010, 10:08 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