Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6137503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:44:07+00:00 2026-05-23T17:44:07+00:00

I am working on an Access DB. The data source for this DB is

  • 0

I am working on an Access DB. The data source for this DB is Excel spreadsheets. I need to add functionality that will allow a user to clean the raw Excel data by running a VBA function and then import this data into Access, without importing duplicate records.

I have a few questions about how to approach this:

1) Should I write a VBA procedure and a simple GUI in Excel to clean the data, or should I include this in an Access Form that allows the user to import Excel data into a table? In other words, should the data be cleaned in Access or outside of Access?

2) What is the best way to prevent the import of duplicate records into a table? Should I write VBA code to do this, or should I set a property of the table (if this is possible)?

3) Should I allow the user to clean the data in Excel and then just have the user use an import wizard in Access to add the data instead of writing code in a Form to allow the import of data into a data table?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:44:07+00:00Added an answer on May 23, 2026 at 5:44 pm

    The best way to prevent duplicate records in the database is to define a unique index on the column(s) that constitute(s) a unique key.

    For example, if you wanted to make sure that there was no more than one specialist per speciality per hospital in the hospital system, you could do this in a hypothethetical HospitalSpecialists table:

                 id                autoincrementing integer primary key
                 hospitalid        integer foreign key references hospitals(id)
                 physicianid       integer foreign key references physicians(id)
                 specialityid      integer foreign key references specialties(id)
    
    
                 unique composite index on (hospitalid, physicianid, specialtyid)
    

    Then you couldn’t insert a duplicate.

    So you first have to determine what constitutes a duplicate for your table: which subset of the columns, when taken together, establishes the uniqueness of the record?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an Access adp that has its data stored in sql-server.
I'm currently working in a piece of code where both logic and data access
I am working on a new application that uses a jet (MS Access) database.
I'm working on a WCF service that requires Membership and Profile access. I got
I have an application in Access 2003 that I am working on. In it,
We have this huge application that has 18 projects in our source control (
CodeCampServer source code contains a generic StaticFactory . I'm surmising that this is a
I am currently working on a VB.NET desktop application that uses .mdb (Access) database
There's this web app, which relies on a sort of data access library (simple
So I have this datagridview that is linked to a Binding source that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.