Results 1 to 6 of 6
  1. #1
    engnrguy is offline Novice
    Windows 8 Access 2003
    Join Date
    Nov 2013
    Posts
    5

    Inspecting devices and combination of devices at multiple properties

    Hello,

    We are a service company that inspects approximately 13 different types of devices at about 1,000 different properties. Each property has at least one of the thirteen devices, but it may have as many as all thirteen. Each device has about 5 specific questions that our inspector has to answer (yes, no, n/a).

    I am looking to build a database that we can use to store the property location and list the devices that each property has. Based on the stored data, we will print forms that our field technicians fill-out by hand. We are not looking (at least not at this point) to store the results of the inspection in Access.

    Currently, I have a property table that has the name and address as well as check boxes where the user can select all the devices that are present at each property. I have a second table that is called questions. Within questions, I have typed in all the questions that we'll use and each one is designated as device1, device2, etc...

    How can I build a report that will print out with the name and address and list the devices present at the top of the page, but I also need it to print out the questions that applicable based on the device list?

    Currently, we have a database that does what we are looking for above, but we just have a really long report with all the questions for all devices... The inspector just crosses out what he doesn't need. I would like to have reports print that only have applicable questions on it.

    I have built a few different programs that our company uses so I do have some experience, but its mostly come from trial-and-error. I do not use VBA, but if its needed I could take sometime to try and learn it.

    Thanks in advance for any help anyone can provide. I have used this forum to get answers on other questions, but I have never posted before. If I am in the wrong area of the board with my question let me know.

    Thanks,

    Engr

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    The use of multiple Yes/No fields for same type of data (the devices) is not normalized structure. Consider:

    tblProperties
    PropertyID

    tblDevices
    DeviceID

    tblPropertiesDevices
    PropertyID
    DeviceID

    tblQuestions
    QuestionID
    DeviceID
    Question

    This assumes a question can be associated with only one device. If a question can be applied to multiple devices, then remove DeviceID from tblQuestions and use:

    tblQuestionsDevices
    QuestionID
    DeviceID
    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.

  3. #3
    engnrguy is offline Novice
    Windows 8 Access 2003
    Join Date
    Nov 2013
    Posts
    5
    Your assumption is correct. I will try your idea tonight. I will give you an update tomorrow.

    Thanks!

  4. #4
    engnrguy is offline Novice
    Windows 8 Access 2003
    Join Date
    Nov 2013
    Posts
    5
    Moderator,

    I tried your solution and I got it to work. Its still a little rough around the edges, but the major concept that I was looking for was achieved.

    For tblPropertiesDevices, I made propertyID and deviceID Primary Keys. Why is this necessary? As I said before, most of my success with this program is trial-and-error so some of the concepts I am not always 100% on.

  5. #5
    engnrguy is offline Novice
    Windows 8 Access 2003
    Join Date
    Nov 2013
    Posts
    5
    Forgot to say thank you.. I really appreciate the help.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    By making both fields primary keys (a 'compound' key) duplication of pairs will not be allowed.
    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.

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

Similar Threads

  1. Replies: 7
    Last Post: 04-23-2013, 11:57 AM
  2. Replies: 2
    Last Post: 09-29-2011, 12:50 PM
  3. Mobile Devices
    By Drew1 in forum Access
    Replies: 0
    Last Post: 10-25-2010, 11:34 AM
  4. Replies: 1
    Last Post: 05-20-2009, 06:15 AM
  5. One table multiple fields identical properties.
    By swampdonkey in forum Queries
    Replies: 2
    Last Post: 09-29-2006, 10:53 AM

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