Create a Query in Microsoft Access to Find Duplicate Entries in a Table Створення запитів в Microsoft Access для пошуку повторюваних значень в таблиці
This article was written by Ця стаття була написана MysticGeek MysticGeek , a tech blogger at the How-To Geek Blogs. , Tech Blogger на How-To Geek блоги.
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. Біг в дублікатів даних в базі даних Access може бути дуже дратує ході суєті робочого дня, тому я вирішив підправити техніку для виявлення повторюваних записів так що ви можете вручну керувати ними.
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. Є багато причин для дублювання даних: наприклад, якщо у вас є кілька користувачів вводити дані одночасно через пов'язаних таблиць, або ви можете наслідувати таблиць з повторюваними даними, які вже вступили.
First open the MDB (Microsoft Database) containing the table you want to check for duplicates. Click on the Queries tab and New. Перший відкритий MDB (Microsoft Database), що містить таблиці, яку ви хочете перевірити на дублікати. Перейдіть на вкладку Запити і нові.

This will open the New Query dialog box. Highlight Find Duplicates Query Wizard then click OK. Це дозволить відкрити новий запит діалоговому вікні. Перейдіть Пошук дублікатів Майстер запитів натисніть кнопку ОК.

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. Тепер виділіть таблиці, яку ви хочете перевірити на дублікати даних. Ви також можете вибрати запити або обох таблиць і запитів. Я ніколи не бачив використовувати для пошукових запитів ... Але, мабуть, було б знадобитися для іншого положення. Після того як Ви відзначили відповідні таблиці натисніть кнопку Далі.

Here we will choose the field or fields within the table we want to check for duplicate data. Try to avoid generalized fields.

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. Ім'я запиту і натиснути "Готово". Запиту буде працювати відразу і спливаючих результатів. Крім того, запит зберігається в розділі "Запит доступу.

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. Залежно від обраної таблиці і поля ваші результати будуть шукати щось схоже на постріли, нижче якого показують, я нічого не дублюється в перший постріл, а також результати дублікатів в іншій.



Daily Email Updates Email Щоденні оновлення
You can get our how-to articles in your inbox each day for free. Ви можете отримати наші довідкові статті у Вашу поштову скриньку щодня безкоштовно. Just enter your name and email below: Просто введіть ваші ім'я та адресу електронної пошти нижче:



This is really a awesome feature that I've never came across!! Це дійсно відмінну функцію, що я ніколи не стикалася!
Is that NumberOfDupes introduced automatically by the Access? Це NumberOfDupes введені автоматично Access?
If I have more than 4 columns and all the fields have dupes, how the it will display the results? Якщо у мене є більш ніж на 4 колонки і всі поля мають дублікати, яким воно буде відображатися результати?
This site is a great resource! Цей сайт є великий ресурс! It helps us geeks learn new tricks and sometimes remind us of some we have forgotten. Він допомагає нам вундеркіндів навчитися нових трюків, а іноді і нагадає нам про деякі ми забули. You might search a query for duplicates if you have already used a query to filter records in a database. Ви можете виконати пошук за запитом дублікатів, якщо ви вже використовували запит для фільтрації записів в базі даних.