S
Sue Compelling
Hi - using ACCESS2007
I have a query (sourced from 2 others) that is calculated to tell me the
current # of leads assigned to an employee (for various campaigns). It's a
simple calculation of # leads per employee MINUS the number of CLOSED leads
per employee (per campaign).
Unfortunately IF the employee doesn't close any leads that month (for any
particular campaign) no result is returned (for that campaign). I want the
join to return ALL records from the "EmpCampLeadVol" query though when I try
to chnage the jpin proporties I get the following error msg "The SQL stmt cld
not b exe bcos it contained an ambiguous outer join. To force .....)
My code is
SELECT EmpCampLeadVol.Employee, EmpCampLeadVol.Campaign,
[empcampleadvol.countofcustnum]-[empcampleadvolclosed.countofcustnum] AS
[Current]
FROM EmpCampLeadVol INNER JOIN EmpCampLeadVolClosed ON
(EmpCampLeadVol.Employee = EmpCampLeadVolClosed.Employee) AND
(EmpCampLeadVol.Campaign = EmpCampLeadVolClosed.Campaign);
TIA
I have a query (sourced from 2 others) that is calculated to tell me the
current # of leads assigned to an employee (for various campaigns). It's a
simple calculation of # leads per employee MINUS the number of CLOSED leads
per employee (per campaign).
Unfortunately IF the employee doesn't close any leads that month (for any
particular campaign) no result is returned (for that campaign). I want the
join to return ALL records from the "EmpCampLeadVol" query though when I try
to chnage the jpin proporties I get the following error msg "The SQL stmt cld
not b exe bcos it contained an ambiguous outer join. To force .....)
My code is
SELECT EmpCampLeadVol.Employee, EmpCampLeadVol.Campaign,
[empcampleadvol.countofcustnum]-[empcampleadvolclosed.countofcustnum] AS
[Current]
FROM EmpCampLeadVol INNER JOIN EmpCampLeadVolClosed ON
(EmpCampLeadVol.Employee = EmpCampLeadVolClosed.Employee) AND
(EmpCampLeadVol.Campaign = EmpCampLeadVolClosed.Campaign);
TIA