Show records with null values

G

Guest

I have the following query:
TRANSFORM Sum(VekeProduksjon.Rest) AS SumAvRest
SELECT VekeProduksjon.ProdVeke
FROM VekeProduksjon
WHERE (((VekeProduksjon.Produsert)=0))
GROUP BY VekeProduksjon.ProdVeke, VekeProduksjon.Produsert
ORDER BY VekeProduksjon.ProdVeke
PIVOT VekeProduksjon.Hovedgruppe;

The crosstab query gives the weekly backlog pr product group (Hovedgruppe).
If there is no backlog for a week, that week does not show up in the result.
I want the 'empty' weeks to show up, so the million $ question is: HOW CAN I
MAKE THE 'EMPTY' WEEK-RECORDS SHOW UP?

Thanks for any help.

PS: Answers in Norwegian or English accepted...
 
M

Marshall Barton

ort said:
I have the following query:
TRANSFORM Sum(VekeProduksjon.Rest) AS SumAvRest
SELECT VekeProduksjon.ProdVeke
FROM VekeProduksjon
WHERE (((VekeProduksjon.Produsert)=0))
GROUP BY VekeProduksjon.ProdVeke, VekeProduksjon.Produsert
ORDER BY VekeProduksjon.ProdVeke
PIVOT VekeProduksjon.Hovedgruppe;

The crosstab query gives the weekly backlog pr product group (Hovedgruppe).
If there is no backlog for a week, that week does not show up in the result.
I want the 'empty' weeks to show up, so the million $ question is: HOW CAN I
MAKE THE 'EMPTY' WEEK-RECORDS SHOW UP?

Add an IN phrase with a list of the weeks to the PIVOT
clause.

This corresponds to the Headings property in the QBE.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top