Results 1 to 8 of 8
  1. #1
    Nokoff is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    17

    Question Audit Database Advice

    Good day everyone



    I am trying to develop a database that will be used by myself and my colleagues to visit 150 stores in the company and capture the audit findings over the next few months. The audit consists of +- 100 checklist items,

    First question: If we all have a copy of the database and use it to capture our audits individually, will it be possible to easily combine the data from each auditor at the end of the audit? Will it simply be a matter of exporting a table and importing it into a consolidated database? What about unique primary keys and that type of thing?

    Below is an example of the way data used to be captured, in excel, which is then pulled through to word via a mail merge.

    Click image for larger version. 

Name:	invent security.png 
Views:	38 
Size:	60.5 KB 
ID:	21296

    As you can see, the structure consists of:

    Interview Question/Statement, framed in the positive, so that if the answer is no, a comment should be attached with an explanation, and I also need to display the "Reference" text and the "finding" text via the mail merge in a specific location (report is grouped by audit category, in this case, inventory security). It is imperative that AN answer is recorded, to ensure that no questions are skipped over and that there is positive assurance of the check being done.

    Side question: If I enter all of the Interview questions into a table (instead of defining a field for each question), is there an easy way to populate a form with all of the question text as labels?

    What would be the best structure of my database to follow, in order to not only have audit weaknesses identified but also audit strength text in the case of there not being a problem for that item.

    I have attempted the database here:
    Attempt 5 16.07.2015.zip

    I will gladly reward you in any way I can for helping me with this, as I do understand that it must be frustrating to explain things to a noob like me.

    Thank you
    Nokoff
    Last edited by Nokoff; 07-17-2015 at 03:43 AM.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Look into SYNCHRONIZING db.
    You dont want to make questions as labels, instead make the questions show in a text box, but the text box will be transparent, and locked from edits.
    It will look like a label.

    the answers will be a checkbox ,hooked to the ANSWER field.

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,842
    If we all have a copy of the database and use it to capture our audits individually, will it be possible to easily combine the data from each auditor at the end of the audit?
    It can be if you set it up right.

    You need to decide what will be a unique primary key - which may be multiple fields. So it might be a combination of store and questionid or store, questionid and auditor name/id for example.

    then the data can be easily appended to a master table. Note that in this scenario a simple autonumber primary key is insufficient since each auditor will be potentially generating the same numbers.

    Having said that, the simple autonumber key is incremental, starts from 1 and increments by 1 - but this is not guaranteed. There are two other types of autonumber key, random and replicationID. The random will generate a random number which may be positive or negative and may be sufficient for your purposes, but there is still a risk that two systems could generate the same number (you select this by changing the new values property of an autonumber key from increment to random) - I often do this to discourage users who have access to this field to giving the field a meaning which is not intended (e.g. order of input, find previous etc)

    To choose a replicationid which is guaranteed to be totally unique, set your autonumber field size to replicationid - you'll also need to set the field to indexed, no duplicates. This will generate a number like {75BFF0F3-DF09-4ACB-8154-880DC6879C47}. Note that you will need to ensure any family keys are also of numeric type replicationid

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Nokoff is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    17
    Quote Originally Posted by Ajax View Post
    It can be if you set it up right.

    To choose a replicationid which is guaranteed to be totally unique, set your autonumber field size to replicationid - you'll also need to set the field to indexed, no duplicates. This will generate a number like {75BFF0F3-DF09-4ACB-8154-880DC6879C47}. Note that you will need to ensure any family keys are also of numeric type replicationid
    Thank you for your suggestion.

    I have modified my database to use the replication ID primary key, and it is working as expected.

    What I did not anticipate was that there is no longer an order to my records. New records could be added at any point in the dataset, since it is sorted by primary key.

    One of my forms is set to open on the last record (most recently added) to edit the detail. Is there a way that I can still achieve this functionality? To open the most recently edited record?

    Thanks

  6. #6
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,842
    even an 'ordinary' autonumber does not guarantee you will find the last record so auto number should not be used for anything other that as a unique ID for the record. I would base the last record entered on a timestamp field (date/time with default set to now()) but this won't work for existing records. This also won't necessarily work if you are importing data - import happens so quickly that several records can have the same timestamp.

    However, since you are only talking about last added record, this should not matter, but if you want to populate this field for existing records if you still have your old autonumber field available you can create a dummy unique timestamp based on a date and adding the autonumber as a number of seconds e.g.

    timestamp=dateadd("s",autonumber,#01/01/2015#)

  7. #7
    Nokoff is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    17
    Quote Originally Posted by Ajax View Post
    even an 'ordinary' autonumber does not guarantee you will find the last record so auto number should not be used for anything other that as a unique ID for the record. I would base the last record entered on a timestamp field (date/time with default set to now()) but this won't work for existing records. This also won't necessarily work if you are importing data - import happens so quickly that several records can have the same timestamp.

    However, since you are only talking about last added record, this should not matter, but if you want to populate this field for existing records if you still have your old autonumber field available you can create a dummy unique timestamp based on a date and adding the autonumber as a number of seconds e.g.

    timestamp=dateadd("s",autonumber,#01/01/2015#)
    Thank you I really appreciate all of your advice!

    I have a follow up question to using the Replication ID that I have used on my main table, tblAudits.

    My database has grown to incorporate more tables that are linked to tblAudits. For example tblAccessories and tblGreyStock. There is a one to many relationship between tblAudits and these new tables, using AuditID (Type: Replication ID) as a Primary Key.

    Now my question is, can I merge these child tables as well? The main reason for this is to divide the work amongst people. So I will create 5 copies of the database and then after collecting all of the data in the field, we will all meet back at the office to combine our work and send out reports. Do you have any suggestions on how to do this?

    Thank you!
    Nokoff

  8. #8
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,842
    you would need to follow the same principle - any table you want to synchronise would need to have a replicationid primary key and a timestamp

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

Similar Threads

  1. Project Audit database
    By accessbro in forum Database Design
    Replies: 2
    Last Post: 01-10-2015, 05:52 PM
  2. Database Audit
    By drow in forum General Chat
    Replies: 3
    Last Post: 04-28-2014, 02:20 AM
  3. Replies: 2
    Last Post: 04-16-2014, 11:17 AM
  4. Replies: 2
    Last Post: 02-09-2013, 12:39 PM
  5. Replies: 28
    Last Post: 04-24-2012, 10:14 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