Results 1 to 2 of 2
  1. #1
    keith701a is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    15

    One to One relationship question for inventory management

    I am designing a basic access database for equipment management within our agency. Personnel can only be issued one piece of each equipment type (laptops, vehicles, etc), so I designed the table with one to one relationships as a sort of fail safe ( for example, so if a laptop was being issued to someone that already has one, they'd be alerted to that fact and would look into it further to avoid inventory issues).

    Each table has a primary key auto number and are linked by the personnel number as a foreign key. I used the personnel number to create the one to one relationships. A question I was posed, which is my question here, is what is the best design to deal with old equipment that needs to be unassigned? For example, a laptop breaks and the personnel needs to be issued a new one. In this scenario, with the one to one relationship, it wouldn't be possible.

    I already have fields to indicate that a piece of equipment is either replaced, surplussed or out of service (which I plan to replace with a single field with a list). One idea I had was to allow blanks in the personnel number field (TLONumber), but then that creates the huge risk of orphan records. Is there a better solution?



    This is what my tables and relationships look like:
    Click image for larger version. 

Name:	relationships.PNG 
Views:	20 
Size:	74.4 KB 
ID:	7692

    To anyone that offers assistance, I very much thank you in advance.
    Last edited by keith701a; 05-17-2012 at 03:37 PM. Reason: Cleaned up post so it can actually be read

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    You may get some ideas from this free data model related to Inventory of IT Assets
    http://www.databaseanswers.org/data_...sets/index.htm

    The facts behind the data model are listed here
    http://www.databaseanswers.org/data_...sets/facts.htm

    It is unlikely that this model will satisfy all of your requirements, but it may give you some ideas, and you may be able to adjust it to meet your needs.

    As you have found, it is difficult to design your database until all of the facts are known.

    You may want to make a list of all of the things you know about the application, and even some things that may apply (either now or in the future).
    If you consider all of the things when you do your design, you may simplify "probably changes that will likely occur later".

    What happens with assigned assets when someone leaves?
    What happens if equipment fails and a loaner or replacement is required?
    Is there a "pool of assets" that can be used for "loaners"?

    Good luck with your project

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access Well Customized Inventory management Database
    By itzmemike in forum Programming
    Replies: 5
    Last Post: 04-20-2012, 02:32 PM
  2. Inventory management
    By Mina Garas in forum Access
    Replies: 3
    Last Post: 01-24-2012, 10:40 AM
  3. Problems with Inventory Management Template
    By vandango05 in forum Access
    Replies: 11
    Last Post: 12-15-2011, 08:26 AM
  4. Inventory template question
    By bbrazeau in forum Programming
    Replies: 2
    Last Post: 10-03-2011, 02:02 PM
  5. Replies: 1
    Last Post: 12-30-2008, 08:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums