G
Guest
I have a table with StartDate, EndDate and Rate and there is a record for
every year. For example, the most current or last record is StartDate 7/1/06
and EndDate 6/30/07 and Rate .063. The previous record is StartDate 7/1/05
and EndDate 6/30/06 and Rate .060. I have another table with CheckDate and
other fields. I want to query the value of the Rate field based on the rate
where the CheckDate falls between the StartDate and EndDate record. So, if
the CheckDate is 1/30/07 then I want to return the rate value of .063 and if
the CheckDate is 1/30/06 then I want to return the Rate value of .060. How
do I do this in a query?
Thanks,
Scott
every year. For example, the most current or last record is StartDate 7/1/06
and EndDate 6/30/07 and Rate .063. The previous record is StartDate 7/1/05
and EndDate 6/30/06 and Rate .060. I have another table with CheckDate and
other fields. I want to query the value of the Rate field based on the rate
where the CheckDate falls between the StartDate and EndDate record. So, if
the CheckDate is 1/30/07 then I want to return the rate value of .063 and if
the CheckDate is 1/30/06 then I want to return the Rate value of .060. How
do I do this in a query?
Thanks,
Scott