Results 1 to 5 of 5
  1. #1
    Rriemer is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    7

    Count where multiple fields are the same

    Similar to an excel Countifs I have three fields that i want to see where all three are the same in different records - Account Number, Phone and Phone Type



    I tried pulling all fields to view and clicked on Totals and then did group by for the three fields and then chose a random field for count. However the extra fields that i need for my output i do not want to group or count. I have tried multiple versions to no avail.

  2. #2
    Rriemer is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    7
    FYI I am trying to find duplicate records.. I think I will change try the wizard to find dupes?

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    SELECT [Account Number], [phone], [phone type], count([Account Number]) as RecordCount FROM TableName GROUP BY [Account Number], [phone], [phone type]

    use this as your 'base query' (qryPrelimStep)

    Create a new query

    Add your base query (qryPrelimStep) and your original table to the query, join on the account number, phone and phone type add the fields you want from either table.

  4. #4
    Rriemer is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    7
    I am not sure I am getting this right. I need to see all the records in the end. I want to export them with a few additional fields so I can remove the duplicates from my CRM

  5. #5
    Rriemer is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    7
    Yes now I understand. I created that table then created a second query and relating the original and the new table I have everything I need. Thanks.

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

Similar Threads

  1. Replies: 3
    Last Post: 02-07-2015, 10:50 AM
  2. Count data from multiple fields
    By tbalci in forum Queries
    Replies: 5
    Last Post: 10-24-2014, 07:47 AM
  3. Replies: 6
    Last Post: 02-13-2014, 11:10 PM
  4. Replies: 1
    Last Post: 08-26-2013, 05:08 PM
  5. Multiple count of query fields
    By BLD21 in forum Queries
    Replies: 2
    Last Post: 05-23-2011, 01:09 PM

Tags for this Thread

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