Results 1 to 9 of 9
  1. #1
    dnd214 is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2022
    Posts
    5

    Key Control Database with transaction logs though process

    Hello all.



    I am struggling with finishing out the table design for my database. The current structure works fine for the basic part of what I am doing, but not for what I want it to do.

    Background:

    Our employees sign for door keys when the inproccess. Our keys have a key number, a keyway, and a serial number. For instance Key Number Q1 is in Keyway A2 and has 10 keys so there would be a record for Q1 - 1, Q1 - 2, all the way up to 10.

    There are a total of two keyways. Each keyway has multiple key numbers and each key number can only have one keyway.

    An employee can sign out multiple key numbers and each key number can be signed to multiple employees.

    Thats where tblProjectkeys comes in. It pulls in the ID from tblKeySeries which is a list of all the key numbers and their keyway, and creates a new record for each serialized key.

    Each employee can have multiple serialized keys, but each serialized key can only be with one employee as there is only one of each serialized key.

    This all works great, and I have a form that shows employees and the keys assigned to them in a subform.

    Now the harder part.

    I currently have the table "tblKeyInventories" Every x amount of months we look at everyones keys to make sure they still have what they originally signed for.

    There are also times someone signs for another key, or turns another key in.

    What I need to be able to do is select a key or set of keys and say they were inventoried and have each of those keys and the date of the inventory recorded into a table.

    Also when a key is signed out, or signed back in, lost, etc I need a transaction log that says what happened. Key so and so was signed out to employee on DTG. These transaction logs would also need to be as a subform for the employees form.

    What I am asking for is if, my current structure looks like it is of sound principle and what should I add/change to do more of a transaction log style table. Its almost like an equipment rental kind of thing, but cant wrap my head around it. Not sure if it needs junction tables, or a table for status, etc.

    I am doing this in O365 version of Access.


    Click image for larger version. 

Name:	Relationships.png 
Views:	24 
Size:	61.7 KB 
ID:	47286

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    Can you upload the actual database?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  3. #3
    dnd214 is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2022
    Posts
    5
    Im trying but the database if 700kb and it wont let me upload anything over 500kb

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    You need to Zip the file before upload
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  5. #5
    dnd214 is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2022
    Posts
    5

    Key Control Database File

    Database zipped and attached.

    KeyControl_FE__Scrubbed - Copy.zip

  6. #6
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    I am a little confused with the Key Series.

    If I select Keyway A as an example would the Key list be as follows:-

    A-1A1
    A-1A2
    A-1A3 etc upto
    A-1A10

    If this is not correct can you give me an example of a full Keyway Key Listing?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  7. #7
    dnd214 is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2022
    Posts
    5
    In a way yes. The keyway is really just a slot cut in a key. It's not as important for the database overall as the key series and the key serial would be the main components for tracking.

    So for Keyway A you could have 1A1 - serial numbers 1-10 which we would normally annotate as 1A1/1, 1A1/2, etc.. you could also have 1B1/1, or 1Z2/1.

    You could technically have the same key series for Keyway B, but because of the slots the same key series would not actually work on the other keyway.

    When its labeled as 1A1 or 1A2 that just means its more of a master submaster series setup. So 1A1 can open all doors with 1A2 and 1A3 core locks. 1A2 could do all of 1A2 and 1A3, and 1A3 could only do 1A3. When we issue a key to the individual, we just issue it as the key series and the key serial, so when we do our inventory/inspection we want to make sure if we issued 1A1 key 1 to an individual we want to make sure they still have that key, as if they are missing it, or somehow they now have 1A1 key 2 we need to question where there key is, and why they have a different key.

  8. #8
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    More confusion reigns.

    Initially you said there were 2 Keyways - A and B

    Now you are saying there could be A, B or Z ??
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  9. #9
    dnd214 is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2022
    Posts
    5
    In my system we only have two keyways A and B, but there could be a good number of different keyways.

    The Z I was referencing would be the Key Series. In my last post it would be (key series/key serial) (1A1/1 or 1Z2/1).

    The keyway really does not have much to do with these numbers. If you look at your car keys or really any key, you will see a long horizontal indent. These can come in all different thicknesses, widths, etc. Those lines are what constitute the keyway, so overall the keyway is part of the database, but only in the sense of we could have a 1A1 series in both the A and B keyways, so adding the keyway would add clarity to which keyway is which. Generally, you won't have this, but I want to add it in there now just in case.

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

Similar Threads

  1. Replies: 8
    Last Post: 04-22-2018, 12:54 PM
  2. Replies: 7
    Last Post: 02-10-2016, 10:00 AM
  3. Replies: 6
    Last Post: 12-08-2014, 08:05 PM
  4. A Challenging Database Design for Manufacturing Process.
    By cap.zadi in forum Database Design
    Replies: 6
    Last Post: 11-10-2012, 11:31 AM
  5. Replies: 7
    Last Post: 11-14-2011, 05:59 PM

Tags for this Thread

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