Results 1 to 3 of 3
  1. #1
    kentck86 is offline Novice
    Windows 8 Access 2007
    Join Date
    Jun 2015
    Posts
    13

    To query repeated records

    Hi Guys,

    My access table are having 3 column which i intended to shows status in column C as "confusion" is there is repetition in column A as long as column B is the same value.Else, column C shall return with "NO".

    Click image for larger version. 

Name:	123.png 
Views:	10 
Size:	17.4 KB 
ID:	23343



    thank you

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Please step back and tell readers WHAT you are trying to do in simple business terms.
    We have no context for your question. Until we know what you are trying to accomplish, we can not offer focused advice on HOW to achieve it.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Can't do this calc in table. Build query with subquery or domain aggregate DCount() function.

    What you show appears to be a query (indicated by the Expr1 field) not a table. So Status is a calculated field in query, not table?

    The example provided does not include duplicates.


    Query1
    SELECT phyCellID, Expr1, Count(Expr1) AS CountOfExpr1 FROM queryName GROUP BY phyCellID, Expr1;

    Query2
    SELECT queryName.phyCellID, queryName.Expr1, IIf([CountOfExpr1]>1,"C","NO") AS Status
    FROM Query1 INNER JOIN queryName ON (Query1.phyCellID = queryName.phyCellID) AND (Query1.Expr1 = queryName.Exp
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-06-2015, 08:44 AM
  2. Replies: 4
    Last Post: 03-03-2015, 01:36 PM
  3. merging repeated data on query
    By Pavilion in forum Queries
    Replies: 3
    Last Post: 06-04-2014, 03:33 PM
  4. Query Criteria for repeated Item
    By rashock in forum Access
    Replies: 3
    Last Post: 01-28-2014, 07:38 PM
  5. Hi, How do we avoid repeated records?
    By radicrains in forum Queries
    Replies: 11
    Last Post: 11-04-2010, 03:00 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