Next Question

Mahalo is adding a tip to all questions that don't offer a tip.
M¢25 Funded By Mahalo ? |
February 22, 2009 01:02 AM
RSS
I can think of some very round-about ways to maybe do this with VBA, but I can't be sure it will work and I don't know enough about your data. Are there duplicate records in a table? Do the records have unique record IDs (primary key)?
To get rid of duplicate records in the data table, create a make table query using the table as the data source. Select all of the fields and either group the query (this will basically stack identical records together since you are grouping by all fields) or right click in the query design area and select "Yes" for "return only unique records". Run the query to create the new table and then replace your old table (after backing it up of course).
Source(s):
My braaaaaiiinnzz
Permalink | Report
At this point you go through the results and when you find that the current record is identical to the previous one you just remove it.
Permalink | Report
Answered Question

Mahalo is adding a tip to all questions that don't offer a tip.
isolate duplicates from an SQL DB call in VB and take action on the earliest result to eliminate dups.
I have an Access database that i need to iterate through, isolate the duplicates, and modify a property to eventually eliminate the duplicates from the database.
Interesting Question?
Yes (0)
No (0)
- In Programming |
- |
- Report |
-
Share
RSS
Best Answer Chosen by Asker
| February 23, 2009 02:29 AM |
To get rid of duplicate records in the data table, create a make table query using the table as the data source. Select all of the fields and either group the query (this will basically stack identical records together since you are grouping by all fields) or right click in the query design area and select "Yes" for "return only unique records". Run the query to create the new table and then replace your old table (after backing it up of course).
Source(s):
My braaaaaiiinnzz
Permalink | Report
Other Answers (1)
February 22, 2009 10:49 PM
A fairly easy way would be to make a query with a sort clause that will order the results according to the duplicated data. At this point you go through the results and when you find that the current record is identical to the previous one you just remove it.
Permalink | Report
Answer this Question
Related Questions
Ask a Question
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- lrauhockey, December 02, 2009 03:48 AM
- fb_698106192, December 02, 2009 03:41 AM
- a21s, December 02, 2009 03:39 AM
- lizhall, December 02, 2009 03:38 AM
- fish4us1234, December 02, 2009 03:15 AM
Mahalo Dollars are the currency of Mahalo Answers.
Each Mahalo Dollar costs $1.
Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More