2008-09-20 16 views

Répondre

1

Le meilleur article que je trouve pour les colonnes de liaison d'une requête de tableau croisé à un rapport est de notes de ewbi.develops.

Plus précisément,

PARAMETERS foryear Short; 
TRANSFORM Sum(mytable.amount) AS total 
SELECT mytable.project 
FROM mytable 
WHERE mytable.year In ([foryear],[foryear]+1) 
GROUP BY mytable.project 
PIVOT IIf(mytable.year=[foryear],"thisyear","nextyear") IN ("thisyear", "nextyear"); 

Cela ne affiche deux colonnes qui peuvent être liés au besoin.