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 צור שאילתה ב-Microsoft Access כדי מצא שכפל רשומות בתוך טבלה

This article was written by מאמר זה נכתב על ידי MysticGeek MysticGeek , a tech blogger at the How-To Geek Blogs. , בלוגר טק ב כיצד כדי בלוגים חנון.

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) המכיל את הטבלה שברצונך לבדוק כפילויות. לחץ על הכרטיסייה שאילתות חדשים.

1

This will open the New Query dialog box.  Highlight Find Duplicates Query Wizard then click 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. עכשיו לסמן את הטבלה שאתה רוצה לבדוק נתונים כפולים. ניתן גם לבחור מספר השאילתות או שניהם טבלאות ושאילתות. מעולם לא ראיתי שימוש בחיפוש השאילתות ... אבל אולי זה היה להיות שימושי עבור מצב אחר. לאחר הדגיש את לחץ על השולחן המתאים הבא.

1

Here we will choose the field or fields within the table we want to check for duplicate data.  Try to avoid generalized fields. כאן נוכל לבחור את השדה או שדות בתוך השולחן ואנחנו רוצים לבדוק נתונים כפולים. נסה להימנע שדות כלליים.

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. שם שאילתה והיכה סיום. השאילתה יפעל מיד צצים התוצאות. כמו כן השאילתה נשמר בסעיף השאילתות של גישה.

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. בהתאם טבלאות ושדות שנבחרו תוצאות שלך יראה משהו דומה יריות שמתחתיו להראות לי שום דבר משוכפלים הירייה הראשונה ואת התוצאות של כפילויות של אחרים.

11

This article was originally written on 04/16/08 Tagged with: מאמר זה נכתב במקור ב 04/16/08 עם שתייגת: Microsoft Office Microsoft Office

Daily Email Updates שערי עדכונים בדוא"ל

You can get our how-to articles in your inbox each day for free. אתה יכול לקבל כמה שלנו למאמרים לתיבת הדואר שלך בכל יום בחינם. Just enter your name and email below: פשוט להזין את שם ואת הדוא"ל שלך להלן:


Name: שם:
Email: דואר אלקטרוני:

Comments (3) תגובות (3)

  1. maheshexp maheshexp

    This is really a awesome feature that I've never came across!! זה באמת מדהים תכונה שמעולם לא נתקלתי!

  2. maheshexp maheshexp

    Is that NumberOfDupes introduced automatically by the Access? האם זה NumberOfDupes הציג באופן אוטומטי על ידי גישה?
    If I have more than 4 columns and all the fields have dupes, how the it will display the results? אם יש לי יותר מ 4 עמודים את כל השדות יש dupes, איך הוא יציג את התוצאות?

  3. mrkerr mrkerr

    This site is a great resource! אתר זה הוא משאב נהדר! It helps us geeks learn new tricks and sometimes remind us of some we have forgotten. זה עוזר לנו Geeks ללמוד טריקים חדשים לפעמים להזכיר לנו כמה ששכחנו. You might search a query for duplicates if you have already used a query to filter records in a database. ייתכן עבור שאילתת חיפוש כפילויות אם כבר נעשה שימוש בשאילתה כדי לסנן רשומות במסד נתונים.


Our Friends חברים שלנו
Getting Started התחלת העבודה


About How-To Geek אודות How-To Geek
What Is That Process? מה זה תהליך?
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. זכויות יוצרים © 2006-2009 HowToGeek.com. All Rights Reserved. כל הזכויות שמורות.