EDIT: I have looked all over, and am thinking that maybe the reason I am getting this error is because I am pulling in a saved query. [People Headcount] is a saved query that I am trying to add. Is there a way to incorporate this query into my update statement?
Code:
SELECT DISTINCT Product_Number, Count(*) AS Headcount
FROM People_Pool
WHERE People_Pool_Name Like "*Smith-Doe-adams*"
GROUP BY Product_Number;
In plain english, I want my statement to Update the People Headcount on the Products Table when the Product Project Number is equal to the People_Pool Project Number. I want the People Headcount become equal to the above query release.
Is this possible to do in an update statement?
Thank you!
Previous Post:
I tried to sort the empty records, both from largest to smallest and smallest to largest and received the following error:
Syntax error in query. Incomplete query clause.
Any idea what this might be?