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

    How to create a Matrix style query?

    Hi,



    I have (for the sake of argument) three tables - Widgets (Number 'ID', text 'WidgetName'), Factories(Number 'ID', text 'FactoryName'), and FactoryWidgetLink(Number 'ID', Number 'Factory', Number 'Widget', Number 'Throughput').

    The link table columns Factory and Widget, are linked in the relationship diagram to the IDs in the respective tables.


    the desired output from the query i'm trying to design is that all of the factories are listed across the column headers of a matrix, and all of the widgets are listed along the row headers of the matrix, and all intersections shown on the matrix, regardless of whether there is a record for it or not (Add a 0 throughput record for each if necessary).

    I'm trying to present the user with a way of defining the throughput easily for each widget type in each factory. I don't want them to have to fill in a form for each entry.

    Any ideas?

    Thanks in advance.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Often, presenting data is a different step than capturing data.

    You could probably adapt a Crosstab query for presentation purposes.
    For capture you might use a couple of combo or list boxes (Factory and Widget), make a selection from each and enter a Production/throughput number.
    My suspicion is that you will want some sort of Time/Week/Shift element to your overall design.

    see attached:
    Cross tab sample design

    CrossTab with Data
    Attached Thumbnails Attached Thumbnails CrosstabDesign.jpg   CrossTabData.jpg   MyQuery49.jpg  

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

Similar Threads

  1. Can SQL be used to create a matrix style report?
    By Harley Guy in forum SQL Server
    Replies: 4
    Last Post: 08-20-2014, 03:00 AM
  2. Replies: 5
    Last Post: 12-17-2013, 11:37 AM
  3. Formatting form in matrix style Excel format
    By Harley Guy in forum Forms
    Replies: 6
    Last Post: 03-20-2013, 01:56 PM
  4. Replies: 6
    Last Post: 06-25-2012, 02:57 PM
  5. Create Report in a Matrix Format Like Excel
    By ortley77 in forum Reports
    Replies: 1
    Last Post: 08-24-2010, 09:56 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