Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Make Table Query
Kim Boren 
       
13 months ago
Hello I just created a make table query and ran it. It created the table, however there where several people with the same last name. Which when the table was created it duplicated the people with the same last name. So if there were 3 with the last name Adams, there is now 9 records with last name Adams and each of the first names repeated 3 times. Can someone help me understand why? And how to fix it?
Sami Shamma  @Reply  
             
13 months ago
Please be more specific. See Rule #2.

Show your query in design mode.
Kevin Robertson  @Reply  
          
13 months ago
I would suspect it has something to do with your Joins but as Sami said we need to see your Query otherwise we are just guessing.
Kim Boren OP  @Reply  
       
13 months ago

Sami Shamma  @Reply  
             
13 months ago
Kim, few things...

There isn't enough on the image you sent for us to figure out what's going on.
You are breaking many of Richard's rules regarding naming conventions:
1)You have spaces in your file name.
2)You have special characters in your file names.
3) why would you have a table that is called 'copy of' something else?

And the table that is called 'Copy of FullExport A....' is 'Last Name' Index?
Both primary keys on both tables are called 'id', which is very confusing. I would use something like class ID, student ID, etc.
Kevin Robertson  @Reply  
          
13 months ago
A couple of field names you should really change:
    Name
    Count

Reserved Words
Kim Boren OP  @Reply  
       
13 months ago
Sami and Kevin,

Thank you very much for your help. Just so you know these field names are what came to me this week that are from 50 years ago. I am trying to put a working database together so I can use it. Thanks again.
Kim
John Davy  @Reply  
         
13 months ago
Hi Kim, We all know that many people have the same lastname, so when you link on lastname think of what can happen! If you have 2 people with the lastname Boren what is your result going to be. Take a piece of paper and sketch it out. Kim Boren matches with ABCD Boren who matches with XYZ Boren etc. That is why you are getting the wrong results. That is why Lastname is a very poor link.  If you cannot use a unique id you have to think about what else is unique. Try lastname,firstname,city and email to see if the combination is unique.  HTH John
John Davy  @Reply  
         
13 months ago
Hi Kim, Sami and Kevin are correct about naming conventions. It is best to nip it early otherwise it comes back to bite you later. State can also bite you ST will work.  John
Raymond Spornhauer  @Reply  
          
13 months ago
Kim

You're getting redundant names because you're using a Right Join query with only the Last Name.  Using just the last name will result in all duplicate records with the same last names.

You should add another join between the First Name Fields.

I'll also reiterate what others are telling you... the field names need to be fixed or you will have more problems later.  (get rid of the spaces and make sure you're not using reserved words)

Hope this helps.

-Raymond

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 8/12/2026 3:29:00 PM. PLT: 1s