Hi,
I am trying to extract information from a database using an SQL statement.
In this database I have 2 columns HPDName and HPDAssigned. Within the HPDAssigned Column I have one of 2 things, Admin or Support. In the HPDName Column I have the name of the Technician. What I want to show on my page is the name of the technician and how many calls they closed in each of the groups (Admin and Support)
I know how to do a COUNT to get the total number of records in the HPDAssigned column but I don't know how to show the Name of the Technician and how many calls they closed individually
Here's what I'm using for the total count for both Admin and Support from HPDAssigned
Can anyone advise?
I am trying to extract information from a database using an SQL statement.
In this database I have 2 columns HPDName and HPDAssigned. Within the HPDAssigned Column I have one of 2 things, Admin or Support. In the HPDName Column I have the name of the Technician. What I want to show on my page is the name of the technician and how many calls they closed in each of the groups (Admin and Support)
I know how to do a COUNT to get the total number of records in the HPDAssigned column but I don't know how to show the Name of the Technician and how many calls they closed individually
Here's what I'm using for the total count for both Admin and Support from HPDAssigned
Code:
rs.Open "Select COUNT([HPDAssigned]) FROM HD WHERE [HPD Assigned] = 'Admin'", conn
Code:
rs.Open "Select COUNT([HPDAssigned]) FROM HD WHERE [HPD Assigned] = 'Support'", conn
Can anyone advise?