Results 1 to 6 of 6
  1. #1
    Benaal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    6

    Utilising forms to display an Interactive Manufacturing Quality Matrix?

    Good morning,



    I have a simple database design, recording quality losses by work area and product within the plant. What I want to do is present the user with a matrix of the work areas at the top, the products at the side, and a list of losses recorded against each combination, with a button to add another if it is required. Please see attached picture.

    The problem is that the work areas and the products are fairly fluid. They change every six months or so, and I want to make a flexible matrix that can be changed at a moment's notice. Hence, I don't want to hard-code the areas and products onto the form.

    Any ideas would be greatly appreciated as i'm currently drawing up a blank.

    Thanks in advance.

    Click image for larger version. 

Name:	layout_of_Matrix.jpg 
Views:	19 
Size:	49.2 KB 
ID:	19822

  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,626
    Then you will need a lot of VBA code to set properties of controls on form and for reading/writing data.
    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
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    This looks like a fun project, have you got a sample database you can upload so I don't have to slog through creating one?

    Also, would you be modifying the same matrix over and over, or creating a new matrix every few months?

    if you modify the same matrix let's say 4 months from now you add a new product 'dips' would you be adding that to this matrix and perhaps removing a previous product? what happens to the previous product if you are modifying the same matrix, do you basically void the item so it doesn't appear in your matrix? Do you have start date and termination dates associated with the matrix?

    Like June says, this will be programming heavy but there's no reason it can't be done as long as there are reliable rules.

  4. #4
    Benaal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    6
    Thanks for the replies. I'm not shy with VBA, since i've been coding for most my life.

    The vision would be that commercial could decide at any point that we want to sell a new product. We would then add this in the table, and have this reflected in the matrix.
    The same would be said for factory areas - If we add a new process in, for example 'painting', it would also be reflected.
    On taking away an option, I would envisage that the records stay in the database, but 'archived' in some way.

    To be honest i'm more interested in making the Matrix form reflecting the options at the moment.

    If I were doing this in PHP, which is my other language, I would have it programatically create <table><tr><td></td></tr></table> tags for each row. However, i'm not really sure what the equivalent control would be in Access VB.
    Whatever control I use, will ideally need to be a container within which I can add a button.

    Please see attached test database.

    testBase.zip

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Use form with textboxes/comboboxes/listboxes/ and command buttons.

    Changing the quantity of 'columns' for areas and 'rows' for products in the 'matrix' would likely mean design changes to the form. Programmatically modifying objects in Access db seldom has benefit. Design edits cause the db to grow in size, requiring Compact & Repair procedure to be run.
    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.

  6. #6
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Rather than redo an example here's an example of entering a matrix on a form but the underlying table having a properly normalized structure.

    https://www.accessforums.net/forms/a...31/index2.html

    Look for the last attachment on page 2, Update_Example.zip

    It's got one matrix element per 'box' but you can modify to either handle a series of list boxes or other controls.

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

Similar Threads

  1. Replies: 6
    Last Post: 03-06-2013, 12:17 PM
  2. A Challenging Database Design for Manufacturing Process.
    By cap.zadi in forum Database Design
    Replies: 6
    Last Post: 11-10-2012, 11:31 AM
  3. Where to start - manufacturing log
    By frosty in forum Access
    Replies: 3
    Last Post: 10-04-2012, 07:05 AM
  4. matrix display
    By radujit in forum Queries
    Replies: 1
    Last Post: 01-25-2011, 10:37 AM
  5. Interactive Training sugguestion
    By dstone8484 in forum Access
    Replies: 5
    Last Post: 07-06-2010, 07:33 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