+ Reply to Thread
Results 1 to 6 of 6

How can I identify if a record has two different records?

  1. #1
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    How can I identify if a record has two different records?

    Hello I have a query with two fields, one is the tax id and the other is a flag. The flag will either be "Valid" or "Not Valid", I know I have tax-id records with both "Valid" and "Not Valid". Is there a way I can identify tax id records with both "Valid" and "Not Valid" fields?
    Last edited by jgomez; 01-27-2014 at 02:42 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How can I identify if a record has two different records?

    Do you mean everything else in the records is identical excelp the flag?
    If posting code please use code tags, see here.

  3. #3
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: How can I identify if a record has two different records?

    Yes, I think I got it. I will do a group by query then write an IIF query to see if the tax id records are >1. I'll run it and see if that works.

  4. #4
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: How can I identify if a record has two different records?

    Nope that didn't work...

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How can I identify if a record has two different records?

    If the ID is unique then you should be able to identify the duplicates like this.

    SELECT [IDField], Count([IDField])),
    FROM [MyTable]
    GROUP BY [IDField]
    HAVING Count([IDField])>1

  6. #6
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: How can I identify if a record has two different records?

    Thanks a bunch!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can Access help identify changes in records?
    By jgomez in forum Access Tables & Databases
    Replies: 1
    Last Post: 08-26-2013, 10:37 AM
  2. New Combo Box to identify record then display all associated data.
    By hydrojoe11 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2007, 10:07 AM
  3. identify first date a record appears
    By mcarrington in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2005, 05:10 PM
  4. Identify missing record numbers
    By Earl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2005, 11:10 AM
  5. [SOLVED] Identify missing record numbers
    By kabobot in forum Excel General
    Replies: 4
    Last Post: 01-05-2005, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1