Adam McReynolds
Registered User.
- Local time
- Today, 14:19
- Joined
- Aug 6, 2012
- Messages
- 129
I have 3 fields on a table for 3 types of repair techs in a unit repair cycle. I am trying to see query data for a single tech where they can be the tech in any or all of the three fields. The three fields are Rework,Repair, and QC.
I have used an "OR" statement to find records that will have the single tech in either of the 3 tech fields but this data needs to be reduced down to be easier to read.
My questions is how can I group by these three fields and show when the tech say, "Reworked" a unit, with a subtotal count for each group? So when a report is ran on that tech I can see the records they "Reworked" with a subtotal count for that group, the records they "Repaired" with a subtotal count for that group, and so on.
Here is my code so far using a combo box for the techID:
Thanks for any help.
I have used an "OR" statement to find records that will have the single tech in either of the 3 tech fields but this data needs to be reduced down to be easier to read.
My questions is how can I group by these three fields and show when the tech say, "Reworked" a unit, with a subtotal count for each group? So when a report is ran on that tech I can see the records they "Reworked" with a subtotal count for that group, the records they "Repaired" with a subtotal count for that group, and so on.
Here is my code so far using a combo box for the techID:
Code:
Dim strWhere
strWhere = "ReworkTech = '" & Me.cmb_tech_daily & "' Or RepairTech = '" & Me.cmb_tech_daily & "' OR QC_Tech = '" & Me.cmb_tech_daily & "'"
DoCmd.OpenReport "RPT_RF_TECH_DAILY_ALL", acViewReport, , strWhere
Thanks for any help.