Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Expert 22    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
The Query Could Be Updateable with Unique Upccodes
Miikka Sohlman 
     
8 months ago
Hi. In E22-02, around time 20:00 it bothered me that the ImportProductPricingXYZWholesaleQ was not updateable. The joins didn't look that complicated to me, I've had more complicated ones that were still updateable so I wanted to learn the root cause for this.

I found out it's because the UPCCode (as ProductID) in the ImportT was indexed but not unique. I set it unique and now the query is updateable.

Actually at first I changed the UPCCode also in the ProductT to be unique, but after some more experimenting found out that it is fine being non-unique. But the ImportT has to be unique.

I kinda understand why Access wouldn't allow it. If there were duplicates in the ImportT, how would it know which price to bring in exactly?

Then I thought maybe there's a reason it shouldn't be unique? But then.. wouldn't your DLookUp method fetch the price of the first matching code it encounters anyways, and ignore any duplicates so... the UPCCode kinda should be unique in the ImportT anyways, right?
Miikka Sohlman OP  @Reply  
     
8 months ago

Miikka Sohlman OP  @Reply  
     
8 months ago

Miikka Sohlman OP  @Reply  
     
8 months ago

Richard Rost  @Reply  
          
8 months ago
Interesting. I'll have to play around with this when I get a few free minutes.

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

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: 5/2/2026 8:58:15 AM. PLT: 0s