Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Expert > X22 > < X21 | X23 >
Back to Access Expert 22    Comments List
Upload Images   @Reply   Bookmark    Link   Email  
Fix Order Entry System
Stephen Gledhill 
     
4 months ago
I have just fixed my own order entry system as per instructions in Expert 22 (3) and all works well. However, when I enter a new record, my OrderF main form and my CustomerSubformF are blank as expected, but the LineItem subform always remembers the previous order's products entered using the "Add Product" macro button (see screenshot).How can I stop this? If I delete them, they are deleted from the LineItemsF - not good!
Stephen Gledhill OP  @Reply  
     
4 months ago

Kevin Robertson  @Reply  
          
4 months ago
Check the Link Master Fields and Link Child Fields properties.

Subforms
Stephen Gledhill OP  @Reply  
     
4 months ago
Hi Kevin - Link Master Field - OrderID, Link Child Field - OrderID.
I think that's as it should be isn't it? Or am I misunderstanding you?
Stephen Gledhill OP  @Reply  
     
3 months ago
I recently "fixed" my own order entry system as per instructions in Expert 22 (3) and all works well.
However, I'm struggling to find a way to clear the unbound combo box the macro button uses to copy the products to the order line items subform. The last item copied stays in the box, even when you move to a new record (see attachment).
Can anyone advise?
Stephen Gledhill OP  @Reply  
     
3 months ago

Kevin Robertson  @Reply  
          
3 months ago
Do you want the Combo Box cleared when you move to a new record, or when the button is clicked?
Stephen Gledhill OP  @Reply  
     
3 months ago
Ideally when the "Add Product" button is clicked (but after the macro has done all its copying to the Order Details Form of course).
That would stop the last product entered carrying over a new order, and stop me adding the same product again by mistake .
Kevin Robertson  @Reply  
          
3 months ago
In Design View, right click on the Button and click Build Event. This will open up the Macro behind that Button.
Add another Set Value to the Macro (make sure you click 'Show All Actions' on the Ribbon) then move it up as shown in my screenshot below.
Kevin Robertson  @Reply  
          
3 months ago

Stephen Gledhill OP  @Reply  
     
3 months ago
That's great - thanks Kevin. Learning the macro commands and correct syntax is a challenge!

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

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/17/2025 9:27:31 AM. PLT: 1s