LouisWambsganss
6 years agoQrew Trainee
Using date ranges across multiple tables
Hello All,
Long time user/lurker, first time poster here. I have a situation that I have not been able to find an answer for yet, and I was hoping the community could help.
I have an app with two tables.
Table 1 is a list of Discrepancies. Each Discrepancy has fields for Name, Machine Number, and Date. (15,500 discrepancies)
Table 2 is a list of all Parts installed on each Machine over the last 20 years. Each entry has a Part Number, Serial Number, an installation date and (possibly) a removal date on each Machine. (Almost 1 million entries)
Is there a way to take Table 1 data for Machine number and date, and then filter data from Table 2? So all parts installed on that Machine where the Discrepancy date is within the Part installation/removal date range?
I have an idea I might just have to convert each of the three date fields (Discrepancy Date, Part Installed Date, and Part Removed Date) into new field where each day has a single sequential number (starting 01JAN2000 was Day #1).
Ideally, the user would click on a Discrepancy on Table 1 and would be presented with a list of parts that were installed on that Machine on the date of the discrepancy.
Please let me know if anyone has any ideas. Otherwise I'm stuck allocating labor hours to just manually searching and filtering to obtain this data, which is not ideal.
Thanks!
Lou
------------------------------
Louis Wambsganss
------------------------------
Long time user/lurker, first time poster here. I have a situation that I have not been able to find an answer for yet, and I was hoping the community could help.
I have an app with two tables.
Table 1 is a list of Discrepancies. Each Discrepancy has fields for Name, Machine Number, and Date. (15,500 discrepancies)
Table 2 is a list of all Parts installed on each Machine over the last 20 years. Each entry has a Part Number, Serial Number, an installation date and (possibly) a removal date on each Machine. (Almost 1 million entries)
Is there a way to take Table 1 data for Machine number and date, and then filter data from Table 2? So all parts installed on that Machine where the Discrepancy date is within the Part installation/removal date range?
I have an idea I might just have to convert each of the three date fields (Discrepancy Date, Part Installed Date, and Part Removed Date) into new field where each day has a single sequential number (starting 01JAN2000 was Day #1).
Ideally, the user would click on a Discrepancy on Table 1 and would be presented with a list of parts that were installed on that Machine on the date of the discrepancy.
Please let me know if anyone has any ideas. Otherwise I'm stuck allocating labor hours to just manually searching and filtering to obtain this data, which is not ideal.
Thanks!
Lou
------------------------------
Louis Wambsganss
------------------------------