Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Create a Query in Microsoft Access to Find Duplicate Entries in a Table Tạo một truy vấn trong Microsoft Access to Find Duplicate mục có trong một bàn

This article was written by Bài viết này được viết bởi MysticGeek MysticGeek , a tech blogger at the How-To Geek Blogs. , Một blogger công nghệ cao tại How-To Geek Blog.

Running into duplicate data in an Access Database can be quite annoying during the hectic workday, so I decided to write up a technique to help identify the duplicate records so you can manually handle them. Chạy vào dữ liệu lặp lại trong một cơ sở dữ liệu Access có thể khá khó chịu trong ngày làm việc bận rộn, nên tôi quyết định viết lên một kỹ thuật để giúp xác định các hồ sơ trùng lặp, do đó bạn có thể tự xử lý chúng.

There are many causes for duplicate data: for instance if you have multiple users entering data simultaneously via linked tables, or you might inherit a table with duplicate data already entered. Có nhiều nguyên nhân cho dữ liệu lặp lại: ví dụ nếu bạn có nhiều người sử dụng nhập dữ liệu đồng thời thông qua các bảng được liên kết, hoặc bạn có thể thừa kế một bảng với dữ liệu trùng lặp đã được nhập vào.

First open the MDB (Microsoft Database) containing the table you want to check for duplicates.  Click on the Queries tab and New. Trước tiên mở MDB (Microsoft Cơ sở dữ liệu) có chứa các bảng mà bạn muốn kiểm tra các bản sao. Nhấp vào tab câu hỏi và mới.

1

This will open the New Query dialog box.  Highlight Find Duplicates Query Wizard then click OK. Điều này sẽ mở hộp thoại New Query. Highlight Find Duplicates Query Wizard sau đó nhấn OK.

1

Now highlight the table you want to check for duplicate data.  You can also choose Queries or both Tables and Queries.  I have never seen a use for searching Queries … but perhaps it would come in handy for another's situation.  Once you've highlighted the appropriate table click Next. Bây giờ nổi bật trong bảng bạn muốn kiểm tra dữ liệu trùng lặp Bạn cũng có thể chọn Các câu hỏi hoặc cả hai Bàn Queries.. Tôi chưa bao giờ thấy một sử dụng để truy vấn tìm kiếm ... nhưng có lẽ nó sẽ có ích cho đến tình hình của người khác. Khi bạn đã nêu bật thích hợp bảng bấm Next.

1

Here we will choose the field or fields within the table we want to check for duplicate data.  Try to avoid generalized fields. Ở đây chúng tôi sẽ chọn trường hoặc các trường trong bảng chúng tôi muốn kiểm tra dữ liệu trùng lặp. Hãy cố gắng tránh các lĩnh vực tổng quát.

1

Name the Query and hit Finish.  The Query will run right away and pop up the results.  Also the Query is saved in the Queries section of Access. Tên các truy vấn và nhấn Finish. Các truy vấn sẽ chạy ngay lập tức và bật lên kết quả Ngoài ra các truy vấn được lưu trong phần Các câu hỏi của Access..

2

Depending upon the selected tables and fields your results will look something similar to the shots below which show I have nothing duplicated in the first shot and the results of duplicates in the other. Tuỳ thuộc vào bảng lựa chọn và các lĩnh vực kết quả của bạn sẽ tìm một cái gì đó tương tự với những bức ảnh dưới đây mà tôi thấy không có gì trùng lặp trong bắn đầu tiên và các kết quả của bản sao trong khác.

11

This article was originally written on 04/16/08 Tagged with: Bài viết này ban đầu được viết ngày 04/16/08 Tagged với: Microsoft Office Microsoft Office

Daily Email Updates Email cập nhật hàng ngày

You can get our how-to articles in your inbox each day for free. Bạn có thể làm thế nào chúng tôi vào các bài viết trong hộp thư của bạn mỗi ngày miễn phí. Just enter your name and email below: Chỉ cần nhập tên và email của bạn dưới đây:


Name: Tên:
Email: Email:

Comments (3) Comment (3)

  1. maheshexp maheshexp

    This is really a awesome feature that I've never came across!! Điều này thực sự là một tính năng awesome rằng tôi đã không bao giờ đến trên!!

  2. maheshexp maheshexp

    Is that NumberOfDupes introduced automatically by the Access? Là NumberOfDupes giới thiệu tự động truy cập không?
    If I have more than 4 columns and all the fields have dupes, how the it will display the results? Nếu tôi có hơn 4 cột và tất cả các lĩnh vực có dupes, như thế nào, nó sẽ hiển thị các kết quả?

  3. mrkerr mrkerr

    This site is a great resource! Trang web này là một nguồn lực rất lớn! It helps us geeks learn new tricks and sometimes remind us of some we have forgotten. Nó giúp chúng tôi tìm hiểu geeks thủ đoạn mới và đôi khi nhắc nhở chúng ta về một số chúng ta đã lãng quên. You might search a query for duplicates if you have already used a query to filter records in a database. Bạn có thể tìm kiếm một truy vấn cho các bản sao nếu bạn đã sử dụng một truy vấn để lọc các bản ghi trong cơ sở dữ liệu.


Our Friends Bạn bè của chúng tôi
Getting Started Bắt đầu


About How-To Geek Giới How-To Geek
What Is That Process? Quá trình đó là gì?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Bản quyền © 2006-2009 HowToGeek.com. All Rights Reserved. Tất cả các quyền.