T
Tricia Young
I have a crosstab query I am using on a form with a subform. For some reason
I can not get the columns to change when the dates change in query. Please
help!
The following is my SQL Statement:
TRANSFORM Count(qryOrdReq.txtOrderType) AS CountOftxtOrderType
SELECT qryOrdReq.intItemID, qryOrdReq.txtAssetDescription,
Count(qryOrdReq.txtOrderType) AS Total
FROM qryOrdReq
WHERE (((qryOrdReq.blnDelivered)<>Yes))
GROUP BY qryOrdReq.intItemID, qryOrdReq.txtAssetDescription,
qryOrdReq.blnDelivered
ORDER BY qryOrdReq.txtAssetDescription
PIVOT IIf([dtmdateneeded]<(Date()),"past
due",Format$((DateAdd("d",1-Weekday([dtmDateNeeded],2),[dtmDateNeeded])),'Short Date'));
I need the column headings to be Week 1, Week 2, Week 3, etc. matter what
the actual week numbers are.
Currently my results looks like this:
Item ID Asset 3/26/2007 4/16/2007 4/2/2007
4/23/2007
4603 Mixer 2 1
1 1
2201 Buckets 1 4
8 4
2203 Sponges 4 20
2 5
If someone could tell me how to create the crosstab so that the dates could
be sorted properly that would be great. Also I need the column headings to
on Forms and Reports to change when the dates change.
If that cannot be done then I would settle on using Weeks instead.
Please help!
I can not get the columns to change when the dates change in query. Please
help!
The following is my SQL Statement:
TRANSFORM Count(qryOrdReq.txtOrderType) AS CountOftxtOrderType
SELECT qryOrdReq.intItemID, qryOrdReq.txtAssetDescription,
Count(qryOrdReq.txtOrderType) AS Total
FROM qryOrdReq
WHERE (((qryOrdReq.blnDelivered)<>Yes))
GROUP BY qryOrdReq.intItemID, qryOrdReq.txtAssetDescription,
qryOrdReq.blnDelivered
ORDER BY qryOrdReq.txtAssetDescription
PIVOT IIf([dtmdateneeded]<(Date()),"past
due",Format$((DateAdd("d",1-Weekday([dtmDateNeeded],2),[dtmDateNeeded])),'Short Date'));
I need the column headings to be Week 1, Week 2, Week 3, etc. matter what
the actual week numbers are.
Currently my results looks like this:
Item ID Asset 3/26/2007 4/16/2007 4/2/2007
4/23/2007
4603 Mixer 2 1
1 1
2201 Buckets 1 4
8 4
2203 Sponges 4 20
2 5
If someone could tell me how to create the crosstab so that the dates could
be sorted properly that would be great. Also I need the column headings to
on Forms and Reports to change when the dates change.
If that cannot be done then I would settle on using Weeks instead.
Please help!