SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Four_Button_Keypad)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Four_Button_Keypad)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="4 Button Keypad"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Antenna_Board_Holder)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Antenna_Board_Holder)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Antenna Board Holder"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Back_Cover)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Back_Cover)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Back Cover"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Back_Cover_Screw)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Back_Cover_Screw)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Back Cover Screw"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Base_Station_Connector)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Base_Station_Connector)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Base Station Connector"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Big_Zebra_Rubber)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Big_Zebra_Rubber)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Big Zebra Rubber"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Buttom_Case)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Buttom_Case)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Buttom Case"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Cables_Cover)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Cables_Cover)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Cables Cover"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Charger)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Charger)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Charger"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Charger_Extension_Cable)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Charger_Extension_Cable)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Charger Extension Cable"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Chip_Card_Reader)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Chip_Card_Reader)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Chip Card Reader"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Chip_Card_Reader_Shield)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Chip_Card_Reader_Shield)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Chip Card Reader Shield"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Contactless_Coil)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Contactless_Coil)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Contactless Coil"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.Contactless_Controller_Board)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.Contactless_Controller_Board)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="Contactless Controller Board"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.External_Battery)
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.External_Battery)="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="External Battery"))
union
SELECT tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] AS Expr1, tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL ,tblModelCost.Description ,
tblModelCost.part_number, tblModelCost.Cost, Count(tblTestPoints.External_Battery_Connector_(inside))
FROM tblModelCost, tblTestPoints,tblReceiptVoucherDetails
WHERE (((tblTestPoints.External_Battery_Connector_(inside))="Replace") AND ((tblModelCost.company_name)=[tblTestPoints]![COMPANY_NAME])and
tblReceiptVoucherDetails.id = tblTestPoints.customer_id and tblReceiptVoucherDetails.company_name = tblModelCost.company_name
and tblReceiptVoucherDetails.[COMPANY_NAME] & " " &
tblReceiptVoucherDetails.[Date] & " " & tblReceiptVoucherDetails.[Quantity] = [Forms]![rptReports]![txt9] )
GROUP BY tblReceiptVoucherDetails.[COMPANY_NAME] & " " & tblReceiptVoucherDetails.[Date] & " " &
tblReceiptVoucherDetails.[Quantity] , tblTestPoints.COMPANY_NAME, tblTestPoints.MODEL, tblModelCost.part_number,
tblModelCost.Cost, tblModelCost.Model, tblModelCost.Description
HAVING (((tblModelCost.Model)=[tblTestPoints]![MODEL]) AND ((tblModelCost.Description)="External Battery Connector (inside)"));