Results 1 to 3 of 3
  1. #1
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    528

    Search for repetition

    Hello guys
    I have a query that searches for repeaters, and used this expression.
    Code:
    In (SELECT [Field1] FROM [tblGnr] As Tmp GROUP BY [Field1] HAVING Count(*)>1 )
    And I've succeeded.
    But what I want to find the first 10 characters of the sentence.


    How is that
    Thanks in advance.
    Attached Files Attached Files

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Use this query
    Code:
    SELECT tblGnr.ID, tblGnr.Field1
    FROM tblGnr
    WHERE Left([field1],10)
     In (SELECT Left([field1],10)  
     FROM [tblGnr] As Tmp GROUP BY [field1] HAVING Count(*)>1);
    Good luck

  3. #3
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    528
    Thank you very much orange
    Wonderful

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

Similar Threads

  1. Date & Repetition Query
    By Fermats1980 in forum Queries
    Replies: 1
    Last Post: 10-21-2013, 01:41 PM
  2. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  3. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  4. Replies: 5
    Last Post: 07-13-2012, 01:15 AM
  5. Repetition of data
    By Cedarguy in forum Access
    Replies: 9
    Last Post: 06-06-2012, 07:38 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