Create a Query in Microsoft Access to Find Duplicate Entries in a Table Sukurti Užklausa Microsoft Access Rasti pasikartojančius Įrašai lentelė
This article was written by Šis straipsnis buvo parašyta MysticGeek MysticGeek , a tech blogger at the How-To Geek Blogs. , Tech Blogger metu How-To Geek Blogai.
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. Bėgimas į dubliuoti duomenis duomenų bazė gali būti labai erzina per džiovos darbo dieną, taigi aš nusprendžiau parašyti techniką padeda nustatyti dvigubo įrašo, kad galėtumėte rankiniu būdu valdyti juos.
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. Yra daug priežasčių, dublikatas duomenys: pavyzdžiui, jei turite keletą naudotojų vienu metu per duomenų įvedimo, susijusių lentelių, arba galite paveldi su dviem egzemplioriais duomenų lentelę, jau įrašytas.
First open the MDB (Microsoft Database) containing the table you want to check for duplicates. Click on the Queries tab and New. Pirmoji atviro MDB (Microsoft duomenų bazė), kuriame yra lentelės, kurią norite patikrinti pakartotinai. Spustelėkite skirtuką Užklausos ir nauja.

This will open the New Query dialog box. Highlight Find Duplicates Query Wizard then click OK. Tai atvers naujų Užklausa langą. Paryškinti Rasti dublikatus Query vedlį tada spustelėkite Gerai.

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. Dabar pažymėkite lentelę, kurią norite patikrinti, ar dubliuoti duomenis. Taip pat galite pasirinkti klausimų ar abi lenteles ir užklausas. Aš niekada paieškos užklausų naudojimas ... bet gal ji pravers kitai situacijai. Jei pasirinkote atitinkamą lentelę spustelėkite Pirmyn.

Here we will choose the field or fields within the table we want to check for duplicate data. Try to avoid generalized fields. Čia mes pasirinkti lauke arba laukuose per stalo mes norime patikrinti dubliuoti duomenis. Venkite apibendrintas srityse.

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. Vardas užklausą ir spauskite "Finish". Užklausa bus paleisti iš karto, ir pop-up rezultatus. Be Užklausa išsaugoma queries skyriuje 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. Priklausomai nuo pasirinktų lentelių ir laukų rezultatus atrodys panašūs į nuotraukas žemiau kurios rodo, aš nieko dubliuoja pirma kulka ir dublikatų rezultatai kiti.



Daily Email Updates Dienos paštas Atnaujinimai
You can get our how-to articles in your inbox each day for free. Galite gauti mūsų kaip prie straipsnių į Jūsų pašto dėžutę kasdien nemokamai. Just enter your name and email below: Tiesiog įveskite vardą ir elektroninio pašto adresą žemiau:



This is really a awesome feature that I've never came across!! Tai tikrai nuostabus bruožas, kad aš niekada nebūna per!
Is that NumberOfDupes introduced automatically by the Access? Ar tai NumberOfDupes pristatė automatiškai Access?
If I have more than 4 columns and all the fields have dupes, how the it will display the results? Jeigu aš turiu daugiau kaip 4 stulpelių ir visi laukai yra pasikartojimų, kaip jis bus rodomas rezultatus?
This site is a great resource! Ši svetainė yra puikus informacijos šaltinis! It helps us geeks learn new tricks and sometimes remind us of some we have forgotten. Ji padeda mums Geeks išmokti naujų triukų ir kartais primena mums, kai turime pamiršti. You might search a query for duplicates if you have already used a query to filter records in a database. Jūs galite ieškoti užklausą dublikatas, jei jau naudojama užklausa filtrą įrašų duomenų bazėje.