Hai,
I am using the following Dsum function to get the total personel time hours used by each employee. It works well with the selected year like 2010, 2011, 2012 etc.
DSum("[hoursused]","[annual vacasion]","[EMPLOYEEID]=" & [Forms]![Employee Details]![EmployeeID] & " And Year([startdate])=" & [Forms]![Employee Details]![YearSelect])
But in our office records, year starts from July 01, and eds at June 30 every year. So I need to change my second criteria to select record in between two dates (ie. like "between [yearstart] and [yearends]"). Is it possible to change the second criteria to between two dates in Dsum() function or any other input to sort this out? I have already these date fileds available in the form.
Appreciate your help
Thank you