I have 2 tables the first table "tblpayrollmiles" has the fields "Miles" "ProcessDate" , the second table "Accidents" has the fields "IncidentDate" "Rate".
I need to sum the "Miles" based on the "ProcessDate" greater than the last "IncidentDate" that the "Rate" ="1" Or "3" . I have been able to do that, however if there is no "IncidentDate" with "Rate"="1" Or "3" , I get no value.
Please help!