T
trevorC via AccessMonster.com
Hi,
I'm trying to set get a report of repairs by week, I have the following SQL
code as a sample.
My problem is that when i export to excel the week number is replaced with
"ww".
Also i want to stop the output result from then dividing up the week into
seperate parts for each day of repairs - EG
Qty "ww" - should be week # repair date
9 ww LF13781 STDC 03-Mar-09
11 ww LF13782 PTDC 03-Mar-09
9 ww LF13781 STDC 04-Mar-09
15 ww LF13782 PTDC 04-Mar-09
25 ww LF13781 STDC 05-Mar-09
12 ww LF13782 PTDC 05-Mar-09
14 ww LF14410 BDC 05-Mar-09
SELECT Count(gamrep.[Serial #]) AS Quantity, gamrep.Out AS [Week Completed],
gamrep.[Part #], [Part Number Reference].Description, gamrep.Out AS [Week
Complete]
FROM gamrep LEFT JOIN [Part Number Reference] ON gamrep.[Part #] = [Part
Number Reference].[Part #]
GROUP BY gamrep.[Customer Name], gamrep.[despatch date], gamrep.Out, gamrep.
[Part #], [Part Number Reference].Description, gamrep.Out
HAVING (((gamrep.[Customer Name])="wayfarer") AND ((gamrep.[despatch date])
Is Null) AND ((gamrep.Out) Is Not Null) AND ((gamrep.Out) Is Not Null));
I'm trying to set get a report of repairs by week, I have the following SQL
code as a sample.
My problem is that when i export to excel the week number is replaced with
"ww".
Also i want to stop the output result from then dividing up the week into
seperate parts for each day of repairs - EG
Qty "ww" - should be week # repair date
9 ww LF13781 STDC 03-Mar-09
11 ww LF13782 PTDC 03-Mar-09
9 ww LF13781 STDC 04-Mar-09
15 ww LF13782 PTDC 04-Mar-09
25 ww LF13781 STDC 05-Mar-09
12 ww LF13782 PTDC 05-Mar-09
14 ww LF14410 BDC 05-Mar-09
SELECT Count(gamrep.[Serial #]) AS Quantity, gamrep.Out AS [Week Completed],
gamrep.[Part #], [Part Number Reference].Description, gamrep.Out AS [Week
Complete]
FROM gamrep LEFT JOIN [Part Number Reference] ON gamrep.[Part #] = [Part
Number Reference].[Part #]
GROUP BY gamrep.[Customer Name], gamrep.[despatch date], gamrep.Out, gamrep.
[Part #], [Part Number Reference].Description, gamrep.Out
HAVING (((gamrep.[Customer Name])="wayfarer") AND ((gamrep.[despatch date])
Is Null) AND ((gamrep.Out) Is Not Null) AND ((gamrep.Out) Is Not Null));