Results 1 to 3 of 3
  1. #1
    aquabp is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    69

    Add, create a group id for simular records in a table.

    I am creating a project tracking database to track project files. The database pulls in file names into an access table. The table has FName and Path fields which are short text and a CAT field that is numeric. I have a query that ID's records that are duplicates. To date all I can do is Identify them as such. I want to provide a numeric value to each set of duplicate files. The query is below.


    Code:
    CurrentDb.Execute "UPDATE 02_Detail SET [02_Detail].FID = 1 WHERE ((([02_Detail].FName) In (SELECT [FName] FROM [02_Detail] As Tmp GROUP BY [FName] HAVING Count(*)>1 )));"
    The final result would look like:
    HTML Code:
    FName      Path      CAT
    Dupfile1   path1      1
    DupFile1   path2      1
    DupFile2   Path1      2
    DupFile2   Path1      2
    DupFile2   Path2      2
    I could then look at the duplicate file per category in a form or report to determine which file to keep. There are 1200 records with a total of 6,000 duplicate records that need to be reviewed otherwise I would just look at these files one by one.

    Thanks in advance.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    If you key the fields in the table, you won't get duplicates.

  3. #3
    aquabp is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    69
    True, but this exercise cannot use that ability. I have pulled in the file names of actual project files from several work directories and put them into a table. I need to verify which is the master copy and determine what to do with other related files. So, in this case keying the table would leave thousands of files undetected out in the directory. I need to clean those files up. It would be a lot easier to group them in a form and look at the files in a sub form via the hyperlink that is on the sub form.

    Hope this explains better what I am looking for.

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

Similar Threads

  1. How to create a new Group in the Navigation Pane?
    By JohnEMitchell in forum Access
    Replies: 16
    Last Post: 11-08-2013, 05:55 PM
  2. Replies: 1
    Last Post: 08-03-2012, 12:32 PM
  3. Create a form have 'group' like report
    By namserious in forum Forms
    Replies: 2
    Last Post: 06-28-2011, 02:47 AM
  4. Idea's on how to create a database
    By Bentley68 in forum Access
    Replies: 5
    Last Post: 08-23-2010, 09:33 PM
  5. Replies: 1
    Last Post: 07-12-2010, 05:48 AM

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