Yet Another Query Prob

Ashfaque

Search Beautiful Girls from your town for night
Local time
Today, 13:45
Joined
Sep 6, 2004
Messages
897
Hi,

My this query I created is presenting department wize employees including all nationalities.

Code:
TRANSFORM Count(T_JobOffer.[CDept]) AS CountOfCDept
SELECT T_JobOffer.[CDept]
FROM T_JobOffer
GROUP BY T_JobOffer.[CDept]
ORDER BY T_JobOffer.[CDept]
PIVOT T_JobOffer.[CNationality];

There is a dept called "Top Management" which I dont want to appear in my graph therefore I was modifying the above query using <>"Top Management" but it says "You can't specify on the same field for which you entered value in the cross tab row"

Any help?
 
TRANSFORM Count(T_JobOffer.[CDept]) AS CountOfCDept
SELECT T_JobOffer.[CDept]
FROM T_JobOffer
WHERE Nz([Cdept], "Top Management") <> "Top Management"
GROUP BY T_JobOffer.[CDept]
ORDER BY T_JobOffer.[CDept]
PIVOT T_JobOffer.[CNationality];
 
Msg appearing "You can't assign a value to this object" and removing the modified code keeping the old one
 
I don't know why arnel's solution doesn't work but you can create a select query that eliminates the unwanted value and use that querydef instead of the table in you CrossTab query.
 
Hi Pat,

I tried to replace and made new SELECT query. But attached msg is appearing
Code:
SELECT A.CDept, Count(A.CNationality) AS CountOfCNationality
FROM A
GROUP BY A.CDept
HAVING (((A.CDept)<>"Top Management"))
ORDER BY A.CDept;
 

Attachments

  • 2.jpg
    2.jpg
    219.8 KB · Views: 320
try to delete/re-create the chart.
 
I did it Arnel.

This is 3rd time I did that :)
 
This time it is working....let me check if there are still some errors.....
 

Users who are viewing this thread

Back
Top Bottom