Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Expert One-on-One Access Application Development
This is the forum to discuss the Wrox book Expert One-on-One Microsoft Access Application Development by Helen Feddema; ISBN: 9780764559044
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert One-on-One Access Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 24th, 2004, 06:19 PM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Inventory

Someone must have coded forms and modules for inventory lookup - Where one inventory item is made up of several inventory items from the same table. this is a many to many relationship, thus a connector table must be used, with two keys, one for the master, one for the child. Also the master-child relationship must also display where the child is the master and the master is the child: e.g Part 1 is made up of parts 2, 7 and 9, part 2 is used in parts 1, 5 and 7.
to save me from re-inventing the wheel, are there examples of forms and modules available?

David
Reply With Quote
  #2 (permalink)  
Old January 1st, 2005, 10:20 PM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Look at Employee Tables, especially the one with a recursive Treeview example from MS. An employee can be the supervisor of another employee. The treeview shows it in a graphical format.

THis may not be what you are looking for though. I have done two databases that needed similar associations, but not into multiple layers.

I did a Configuration Management database that had a Build. Inside the build was Documents, Froms, Test Procedures, Drawings, etc. So I gave each type its own table for associating:

Tbl_DwgBuild
BuildID
DwgID

Tbl_Form
BuildID
FormID

etc.

I used a form based on the BuildID from Tbl_Build, have two listboxes on the form. The left box had the available forms, docs, dwgs, etc. (populated via an option group). Then pressing a command button associates the two together, and shows it in the right listbox using a Union query to bring in all of the different tables information.

I don't remember why I used so many tables though. For a training table, I just used a Tbl_AssociateTraining with:

TrainingID
EmployeeID

but used the same two list box format.

I could probably provide an example, but i don't know how applicable it is to parts references that can be circular and numerous.

Sean.

Reply With Quote
  #3 (permalink)  
Old May 27th, 2005, 05:36 PM
Registered User
 
Join Date: May 2005
Location: Stockton, CA, .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I work with a couple tables that do what you want. My Stock table lists all of the information about each stock item. It includes the following fields and sample data:
   Item ID Composite
   ChairD N
   ChairKit Y
   ChairP N
   Headrest N
   MountBrkt N

I also have a table called Composite with the following fields and sample data:
   Key Composite ID QTY Item ID
   1 ChairKit 1 ChairD
   2 ChairKit 1 ChairP
   3 ChairKit 2 MountBrkt
   4 ChairKit 2 Headrest

The Stock table tells us that ChairKit is a composite or kit. This tells my program to look at the Composite table to find which parts and how many of each to remove from stock when I sell a ChairKit.

The composite table tells us that the ChairKit consists of a Driver's Seat, A passenger's Seat, two mounting brackets, and two headrests.

This should be the basic answer for what you are looking for.




David Seibold
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inventory Control Application rth BOOK: Access 2003 VBA Programmer's Reference 0 January 26th, 2007 11:55 PM
How to support Inventory? chenimen BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 2 March 2nd, 2006 05:47 PM
Code for inventory mgmt system in J2EE ritesh_sinha J2EE 1 March 20th, 2004 11:21 AM
Need help with inventory control structure watrout Access 1 March 17th, 2004 10:45 AM
Creating A Progress Meter for Music Inventory 2001 Ben Horne Access VBA 0 November 19th, 2003 02:08 PM



All times are GMT -4. The time now is 10:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.