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 8    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Order Entry Problem
Abraham Breuer 
     
6 years ago
I cant enter enter new records in my order detail query
SQL:
SELECT OrderDetailT.OrderDetailID, ProductT.ProductName, ProductT.ProductPrice, OrderDetailT.Quantity, [ProductPrice]*[Quantity] AS PriceExTax, IIf([IsTaxble],Round([PriceExTax]*0.2,2),0) AS TaxPrice, [PriceExTax]+[TaxPrice] AS PriceInclTax
FROM ProductT INNER JOIN OrderDetailT ON (ProductT.PoductID = OrderDetailT.ProductID) AND (ProductT.PoductID = OrderDetailT.ProductID);
Richard Rost  @Reply  
          
6 years ago
Not surprised. A lot of the time when you create a query with a JOIN it becomes non-updateable. Use a form with a subform.
Abraham Breuer OP  @Reply  
     
6 years ago
but the form will also show my orders and not allow me to edit
how can I make it editable?
Richard Rost  @Reply  
          
6 years ago
Your parent form should only be based on the OrderT table, or a query that uses only fields from the OrderT. Your subform would be based on the OrderDetailT or the OrderDetailQ which has only fields from the OrderDetailT on it. You can't join them both together like that and expect to be able to EDIT the records. VIEW them, sure.
Richard Rost  @Reply  
          
6 years ago
I'm actually preparing a TechHelp video on dealing with non updateable recordsets (queries). Look for it in the coming weeks.
Alex Hedley  @Reply  
           
6 years ago
Is there a typo in ProductT.PoductID?
Should PoductID be ProductID?
Abraham Breuer OP  @Reply  
     
6 years ago
By bringing in the OrderDetail* in the query and then bringing in the unit price from productT will go?
that's how you made it, and it works beautifully!
Richard Rost  @Reply  
          
6 years ago
What lesson and time index do I build this query?
Abraham Breuer OP  @Reply  
     
6 years ago
Expert 8
Lesson 2
10:32
thank a million for giving your time!
Richard Rost  @Reply  
          
6 years ago
OK. That helps. It's been so many YEARS since I recorded these classes (7 years in this case) that sometimes I need to go back and review what I did so I can help you. In this case, I'm pulling product info into the order detail info so we can display the product name and calculate pricing. In this case, you SHOULD be able to edit the LEFT side of the query. The OrderDetailT fields should still be editable, but not the right side (the product info). That's normal behavior. Like Alex said, check your spelling, you do have ProductID spelled wrong in your Product Table, but you also have that join in there TWICE, which you shouldn't. That could be causing your problem. Get rid of the "AND" and everything after it.
Richard Rost  @Reply  
          
6 years ago
Oh, and don't get too attached to the way the database is built right now. Remember, this is a TEACHING database. I show you a much better way to manage all of this by the time we get to Expert 22 and we FIX it.
Abraham Breuer OP  @Reply  
     
6 years ago
thank you very much
Richard Rost  @Reply  
          
6 years ago
My pleasure.

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

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: 4/30/2026 8:56:55 AM. PLT: 1s