A
Andrew
Hi,
I'd like to combine the two queries below into one (just to eliminate the
number of queries I have).
The query 'Qry_Group_Vendor_Name' consists of:
SELECT tbl_Comm_Data.VENDOR_NAME AS Vendor, tbl_Comm_Data.DEPT_NO AS Dept
FROM tbl_Comm_Data GROUP BY tbl_Comm_Data.VENDOR_NAME, tbl_Comm_Data.DEPT_NO;
It produces a list of unique) vendor names by department.
I then want to produce a count of (unique) vendor names by department in a
table (Tbl_Count_Of_Vendors).
SELECT Qry_Group_Vendor_Name.Dept, Count(Qry_Group_Vendor_Name.Vendor) AS
Vendors INTO Tbl_Count_Of_Vendors FROM Qry_Group_Vendor_Name GROUP BY
Qry_Group_Vendor_Name.Dept;
Can you please assist.
I'd like to combine the two queries below into one (just to eliminate the
number of queries I have).
The query 'Qry_Group_Vendor_Name' consists of:
SELECT tbl_Comm_Data.VENDOR_NAME AS Vendor, tbl_Comm_Data.DEPT_NO AS Dept
FROM tbl_Comm_Data GROUP BY tbl_Comm_Data.VENDOR_NAME, tbl_Comm_Data.DEPT_NO;
It produces a list of unique) vendor names by department.
I then want to produce a count of (unique) vendor names by department in a
table (Tbl_Count_Of_Vendors).
SELECT Qry_Group_Vendor_Name.Dept, Count(Qry_Group_Vendor_Name.Vendor) AS
Vendors INTO Tbl_Count_Of_Vendors FROM Qry_Group_Vendor_Name GROUP BY
Qry_Group_Vendor_Name.Dept;
Can you please assist.