Update a table based on another query?

bde7503

New Member
Joined
Dec 12, 2013
Messages
37
hi - i have the below query that inserts the manager name once and the count of how many records are assigned to that manager with an EmpConsultantIndicator value that = e


SELECT DISTINCT CopyMasterResource.Manager, Count(CopyMasterResource.EmpConsultantIndicator) AS [FTE Count] INTO WeeklyWalk
FROM CopyMasterResource
GROUP BY CopyMasterResource.Manager, CopyMasterResource.EmpConsultantIndicator
HAVING (((CopyMasterResource.Manager) Not Like '*tbd*') AND ((CopyMasterResource.EmpConsultantIndicator)='e'));


i need to add another field to the WeeklyWalk table (the FTC Count field) that will also show the count for the EmpConsultantIndicator that = c

i have the query written below

SELECT DISTINCT CopyMasterResource.Manager, Count(CopyMasterResource.EmpConsultantIndicator) AS [FTC Count]
FROM CopyMasterResource
GROUP BY CopyMasterResource.Manager, CopyMasterResource.EmpConsultantIndicator
HAVING (((CopyMasterResource.Manager) Not Like '*tbd*') AND ((CopyMasterResource.EmpConsultantIndicator)
='c'));


i cannot however figure out how to append these counts to the WeeklyWalk table on the correct manager

i tried building the update query in design view but it just isn't working - it is probably something simple but if anyone can point out the way to do this - that would be much appreciated

thanks!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,215,026
Messages
6,122,738
Members
449,094
Latest member
dsharae57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top