Hi
I have an Access query in which I calculate the number of Working days between two dates. How do I workout the average of this figure? I have tried using Avg as well as dAvg both in the query and also in the footer of a report but I just get errors. Any ideas as to what I am doing wrong? The current query looks something like this:
SELECT TABLE1.DCAPPTYP, onelineaddress([ADDRESS]) AS Location, TABLE1.REFVAL, TABLE1.DATEAPRECV, TABLE1.DCSTAT, TABLE1.DATEAPVAL, TABLE2.DATEPRNT, WorkingDays([DATEAPVAL],[DATEPRNT])-1 AS WorkingDays
FROM TABLE1 LEFT JOIN TABLE2 ON TABLE1.KEYVAL = TABLE2.PKEYVAL
WHERE (((TABLE1.DATEAPRECV) Between [Forms]![Main Menu]![From Date] And [Forms]![Main Menu]![Until Date]) AND ((TABLE1.DATEPRNT) Is Not Null))
ORDER BY TABLE1.DATEAPVAL;
Many Thanks
Fi
I have an Access query in which I calculate the number of Working days between two dates. How do I workout the average of this figure? I have tried using Avg as well as dAvg both in the query and also in the footer of a report but I just get errors. Any ideas as to what I am doing wrong? The current query looks something like this:
SELECT TABLE1.DCAPPTYP, onelineaddress([ADDRESS]) AS Location, TABLE1.REFVAL, TABLE1.DATEAPRECV, TABLE1.DCSTAT, TABLE1.DATEAPVAL, TABLE2.DATEPRNT, WorkingDays([DATEAPVAL],[DATEPRNT])-1 AS WorkingDays
FROM TABLE1 LEFT JOIN TABLE2 ON TABLE1.KEYVAL = TABLE2.PKEYVAL
WHERE (((TABLE1.DATEAPRECV) Between [Forms]![Main Menu]![From Date] And [Forms]![Main Menu]![Until Date]) AND ((TABLE1.DATEPRNT) Is Not Null))
ORDER BY TABLE1.DATEAPVAL;
Many Thanks
Fi