N
Neil
Hello All,
I have an enquiry table which keeps track of equipment quoted to a customer.
I have the following SQL statement:
TRANSFORM Count(qryForOverview.ID) AS CountOfID
SELECT qryForOverview.tblCompany.strCompanyName, Count(qryForOverview.ID) AS
[All Months]
FROM qryForOverview
GROUP BY qryForOverview.tblCompany.strCompanyName
PIVOT Format([DATE RECEIVED],"mmm") In
("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
I got this by using the Crosstab Query wizard and have a couple of
questions:
1) Is it possible if no data exists in that month, to exclude the column
from the query?
2) If the is a null value to display a 0?
3) Are Jan 2004 and Jan 2005 results added together with this query? If so,
how can they be displayed separately?
I am thinking that some code may be required in order to do this and
appreciate that someone may have to go into great depths in order to respond
to my questions. If someone could just give me the general basic principles
on how to do the above, then I should be able to figure the exact details
out myself.
TIA,
Neil.
I have an enquiry table which keeps track of equipment quoted to a customer.
I have the following SQL statement:
TRANSFORM Count(qryForOverview.ID) AS CountOfID
SELECT qryForOverview.tblCompany.strCompanyName, Count(qryForOverview.ID) AS
[All Months]
FROM qryForOverview
GROUP BY qryForOverview.tblCompany.strCompanyName
PIVOT Format([DATE RECEIVED],"mmm") In
("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
I got this by using the Crosstab Query wizard and have a couple of
questions:
1) Is it possible if no data exists in that month, to exclude the column
from the query?
2) If the is a null value to display a 0?
3) Are Jan 2004 and Jan 2005 results added together with this query? If so,
how can they be displayed separately?
I am thinking that some code may be required in order to do this and
appreciate that someone may have to go into great depths in order to respond
to my questions. If someone could just give me the general basic principles
on how to do the above, then I should be able to figure the exact details
out myself.
TIA,
Neil.