I have 2 tablesLoadInformationProject | Load | Date10001 | 1 | 10/10/200310001 | 1 | 10/11/200310001 | 1 | 10/12/200310001 | 1 | 10/14/2003DetailsProject | Level | EstimatedLoads10001 | 1 | 1010001 | 2 | 5
I need to produced a report showing the following###OUTPUT####Project | EstLoads | Prev. Sent | Send in this period | TTD | | | 10/11/03 TO 10/14/03|-------------------------------------------------------------10001 | 15 | 1 | 3 | 4
Now I was able to count the total loads sent and get the loads sent within a specified period but I have no idea on how to sum the estimated loads field in the details table. Any ideas?What I have so far:SELECT tblLoadInformation.Project, Count([tblLoadInformation].[Load]) AS Expr1, SUM(iif(tblLoadInformation.Date BETWEEN #10/11/2003# AND #10/14/2003#, 1, 0)) AS Expr2 FROM tblLoadInformation GROUP BY tblLoadInformation.Project;
Any help would be appreciated!Mike B