CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: MS Access

  1. #1
    Join Date
    Mar 2000
    Posts
    2

    MS Access

    Bare with me I am a little new to this. I am taking a DB maintained in My SQL and transfering it to MS Access. What I am looking for is a way to remove duplicate records in the database using MS Access. Any suggestions?


  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: MS Access

    I would suggest filtering them out before they get to the access db.

    you could write a little vb app to extract the data from the old database and put it into the new one. On your select statement from the old db, use DISTINCT to ensure that no duplicates are chosen. then with this unique recordset, insert each row into the new database. this would of course be in a loop.

    hope this helps/applies.

    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: MS Access

    I forgot to mention that there is a "Find Duplicates" Query Wizard in Access. After you get the information into the access table, go the Query tab and select New, then in the list of wizards, there should be a "Find Duplicates Query Wizard" entry. Choose that and then follow the instructions.

    Hope this helps,

    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  4. #4
    Join Date
    Mar 2000
    Posts
    3

    Re: MS Access

    My suggestion would be to use a "find duplicate records" query in access which you can create through the query wizard. You can set this up onto an event which is going to fire evertime you need it to...ie a forms "on load" event.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured