ScottGrund
7 years agoQrew Cadet
Need to have multiple many to many join tables in order to report related data
Tables: Parking facilities; Annual Projects; Work Orders; Documents (there are more but will stick with these for this post)
Relationships:
Parking facilities- many Projects,
- many Work Orders
- many Documents
Projects - many facilities
- many work orders
- many documents
Work Orders - one Project
- many facilities
- many documents
So, we create our Projects for the year then begin our Work Orders for the Project. The Work Order record will show the related Project then select (add) each facility to be worked on through a connection many-to-many table. Also within the Work Order we add documents for items like vendor contracts outlining the statement of work and the vendor invoices for the work completed.
It is very important that each Project record show the historical work orders and documents; each facility record show the historical list of Projects, related Work Orders and related documents. I have been able to accomplish the historical work order report under Project records and Facility records but have no idea how to show that list of related documents (under the work order) for each of the related facilities to the work order.
Example: I have Project A for 2018.
Project A has two work orders: W.O.#1 and W.O.#2.
W.O.#1 is covering Garage Able, Garage Baker & Garage Charlie
W.O.#1 also has document record Contract #100 & document record Invoice #200
W.O.#2 is covering Garage Able & Garage Zebra
W.O.#2 has document record As Built plans #300 & document record Invoice #201
I need to be able to see under the record for Garage Able:
Project A for 2018 in the list of current and past project
Work Orders #1 and #2 in the list of current and past work orders
Documents #100, #200, #300 and #201 in the list of related documents (of course a document description in the list)
Of course each list item under a project or facility must be easily identified and be linked to the under lying record to obtain more detail.
I'm thinking this can be accomplished with some report links but I cannot figure how to have it work closer to a many to many to many relationship.
Relationships:
Parking facilities- many Projects,
- many Work Orders
- many Documents
Projects - many facilities
- many work orders
- many documents
Work Orders - one Project
- many facilities
- many documents
So, we create our Projects for the year then begin our Work Orders for the Project. The Work Order record will show the related Project then select (add) each facility to be worked on through a connection many-to-many table. Also within the Work Order we add documents for items like vendor contracts outlining the statement of work and the vendor invoices for the work completed.
It is very important that each Project record show the historical work orders and documents; each facility record show the historical list of Projects, related Work Orders and related documents. I have been able to accomplish the historical work order report under Project records and Facility records but have no idea how to show that list of related documents (under the work order) for each of the related facilities to the work order.
Example: I have Project A for 2018.
Project A has two work orders: W.O.#1 and W.O.#2.
W.O.#1 is covering Garage Able, Garage Baker & Garage Charlie
W.O.#1 also has document record Contract #100 & document record Invoice #200
W.O.#2 is covering Garage Able & Garage Zebra
W.O.#2 has document record As Built plans #300 & document record Invoice #201
I need to be able to see under the record for Garage Able:
Project A for 2018 in the list of current and past project
Work Orders #1 and #2 in the list of current and past work orders
Documents #100, #200, #300 and #201 in the list of related documents (of course a document description in the list)
Of course each list item under a project or facility must be easily identified and be linked to the under lying record to obtain more detail.
I'm thinking this can be accomplished with some report links but I cannot figure how to have it work closer to a many to many to many relationship.