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 Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Items with components
Ray Chan 

12 years ago
ID / Description
1. Monitor
2. Mouse
3. Keyboard
4. CPU
5. PC (Item 1 - 4)

Is there any way to cut 1 unit each (Item 1-4) from  stock card when I sell a unit of PC (combine of Item 1-4)


Reply from Richard Rost:

You're looking to have items that are made up of other items? This is certainly POSSIBLE, but very tricky, and if you want to keep inventory levels on these items, it's going to require some serious VBA, too.

What I usually suggest in this case is to have a ProductT table that lists your products, and then a ComponentT table that lists your components. Each product can be made up of one or more components. This will be a MANY TO MANY relationship so you'll need a JUNCTION TABLE.

Then, in your inventory control, when you remove an item, you just subtract one unit from each of the components, using either SQL UPDATE statements, or RECORDSETS. So yes, it's certainly possible, but this is pretty complex stuff.

You could also, alternatively, use a SELF JOIN and have components just be other products, but that makes it even trickier.

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: 5/16/2026 5:30:46 PM. PLT: 2s