T
Ticotion
Hi
I need your help once again
I have a query that is a crosstab showing using the following SQL
TRANSFORM Sum(qry_generelOEE.OEE) AS SumOfOEE
SELECT qry_generelOEE.dpt, qry_generelOEE.yearnb
FROM qry_generelOEE
GROUP BY qry_generelOEE.dpt, qry_generelOEE.yearnb
PIVOT qry_generelOEE.week;
I use this as a datasource for a report. This then gives me a report where I
have weeks on tob and downwards have department (and also year). I then want
to use a filter som that I only recieve one row for each the choosen year and
weeks. I use the following code:
DoCmd.OpenReport "Rpt_fabriksOEEny", acPreview, , "[yearnb] >=" & Me.combo7&
" And [weeknb] >= " & Me.combo5& " And [yearnb] <= " & Me.combo9& " And
[weeknb] <= " & Me.combo11
I then recieve and error because week is not part of my SQL. If I add week
to my SQL I get week downwards and on top of the report.
How can I solve this so I get an report that users can filter showing like
below?
Weekno 1 2 3 4 5 6
Department
dpt 1
dpt2
Please help
regards Ticotion
I need your help once again
I have a query that is a crosstab showing using the following SQL
TRANSFORM Sum(qry_generelOEE.OEE) AS SumOfOEE
SELECT qry_generelOEE.dpt, qry_generelOEE.yearnb
FROM qry_generelOEE
GROUP BY qry_generelOEE.dpt, qry_generelOEE.yearnb
PIVOT qry_generelOEE.week;
I use this as a datasource for a report. This then gives me a report where I
have weeks on tob and downwards have department (and also year). I then want
to use a filter som that I only recieve one row for each the choosen year and
weeks. I use the following code:
DoCmd.OpenReport "Rpt_fabriksOEEny", acPreview, , "[yearnb] >=" & Me.combo7&
" And [weeknb] >= " & Me.combo5& " And [yearnb] <= " & Me.combo9& " And
[weeknb] <= " & Me.combo11
I then recieve and error because week is not part of my SQL. If I add week
to my SQL I get week downwards and on top of the report.
How can I solve this so I get an report that users can filter showing like
below?
Weekno 1 2 3 4 5 6
Department
dpt 1
dpt2
Please help
regards Ticotion