Q
QB
Hello,
I have a first query which creates a base list from which I then base a
second query (the one I'm having trouble with) which does a basic count which
is then used to create pie charts from.
The query itself is:
SELECT tbl_RespectdelaLivraison.Type, tbl_RespectdelaLivraison.Respect,
Count(qry_rpt_RespectDateLivraison01.[Respect Date de Livraison]) AS
[CountOfRespect Date de Livraison]
FROM tbl_RespectdelaLivraison LEFT JOIN qry_rpt_RespectDateLivraison01 ON
(tbl_RespectdelaLivraison.Respect = qry_rpt_RespectDateLivraison01.[Respect
Date de Livraison]) AND (tbl_RespectdelaLivraison.Type =
qry_rpt_RespectDateLivraison01.Type)
GROUP BY tbl_RespectdelaLivraison.Type, tbl_RespectdelaLivraison.Respect;
The problem I was having is that I always need to see all the possible
variation combination
Types
A
B
C
RespectDateLivraison01
Before
Ontime
Late
Hence I added the Left join to a table which force them all to appear, and
this appears to work properly.
The Problem:
For an unknown reson the count equals 1 when it should equal 0 for those
variations that are created by the Left Join and not from the 1st query. How
can I resolve this to get the proper count?
Thank you
QB
I have a first query which creates a base list from which I then base a
second query (the one I'm having trouble with) which does a basic count which
is then used to create pie charts from.
The query itself is:
SELECT tbl_RespectdelaLivraison.Type, tbl_RespectdelaLivraison.Respect,
Count(qry_rpt_RespectDateLivraison01.[Respect Date de Livraison]) AS
[CountOfRespect Date de Livraison]
FROM tbl_RespectdelaLivraison LEFT JOIN qry_rpt_RespectDateLivraison01 ON
(tbl_RespectdelaLivraison.Respect = qry_rpt_RespectDateLivraison01.[Respect
Date de Livraison]) AND (tbl_RespectdelaLivraison.Type =
qry_rpt_RespectDateLivraison01.Type)
GROUP BY tbl_RespectdelaLivraison.Type, tbl_RespectdelaLivraison.Respect;
The problem I was having is that I always need to see all the possible
variation combination
Types
A
B
C
RespectDateLivraison01
Before
Ontime
Late
Hence I added the Left join to a table which force them all to appear, and
this appears to work properly.
The Problem:
For an unknown reson the count equals 1 when it should equal 0 for those
variations that are created by the Left Join and not from the 1st query. How
can I resolve this to get the proper count?
Thank you
QB