Hello,
I am using the following UNION QUERY to total up equipment tested for a report.
SELECT "Laptops Tested" AS PCEQUIP, Count(*) AS RECORDS
FROM [LAPTOPS]
WHERE (((Date)Between [Enter Start Date] AND [Enter End Date]));
UNION
SELECT "Workstations Tested" AS PCEQUIP, Count(*) AS RECORDS
FROM [WORKSTATION]
WHERE (((Date)Between [Enter Start Date] AND [Enter End Date]));
UNION
SELECT "Printers Tested" AS PCEQUIP, Count(*) AS RECORDS
FROM [PRINTER]
WHERE (((Date)Between [Enter Start Date] AND [Enter End Date]));
UNION
SELECT "Servers Tested" AS PCEQUIP, Count(*) AS RECORDS
FROM [SERVER]
WHERE (((Date)Between [Enter Start Date] AND [Enter End Date]));
UNION QUERY RESULTS:
Laptops Tested 27
Workstations Tested 18
Printers Tested 22
Servers Tested 19
I have created a report using ACCESS 2000 for this union query and it satisfies the requirement.
I am trying to add the proper code and syntax in this query to total the number of all of this equipment tested.In this case the total would be 86. Is this possible?
Any help would be most appreciated on how to resolve this.
Thanks,
m0aje
I am using the following UNION QUERY to total up equipment tested for a report.
SELECT "Laptops Tested" AS PCEQUIP, Count(*) AS RECORDS
FROM [LAPTOPS]
WHERE (((Date)Between [Enter Start Date] AND [Enter End Date]));
UNION
SELECT "Workstations Tested" AS PCEQUIP, Count(*) AS RECORDS
FROM [WORKSTATION]
WHERE (((Date)Between [Enter Start Date] AND [Enter End Date]));
UNION
SELECT "Printers Tested" AS PCEQUIP, Count(*) AS RECORDS
FROM [PRINTER]
WHERE (((Date)Between [Enter Start Date] AND [Enter End Date]));
UNION
SELECT "Servers Tested" AS PCEQUIP, Count(*) AS RECORDS
FROM [SERVER]
WHERE (((Date)Between [Enter Start Date] AND [Enter End Date]));
UNION QUERY RESULTS:
Laptops Tested 27
Workstations Tested 18
Printers Tested 22
Servers Tested 19
I have created a report using ACCESS 2000 for this union query and it satisfies the requirement.
I am trying to add the proper code and syntax in this query to total the number of all of this equipment tested.In this case the total would be 86. Is this possible?
Any help would be most appreciated on how to resolve this.
Thanks,
m0aje