Hello Everyone,
I have a table called ListOfGroupNumbers. This table has three columns-- StartDate, EndDate, and GroupNumber. I want to use this table as a reference table to return the group number that an entry date belongs to (falls within the date range). It looks like this:
<tbody>
</tbody>
I have another table called "ExcelData". This table has a field called EntryDate. I want to use the EntryDate as a lookup value, and figure out which Group number that belongs to (which date range that entry date falls within), based on the table "ListOfGroupNumbers" (shown above). For example, I want to write an expression in a query so that if I have an entry date of 4/7/2013, it will return "Group 2"
It's tough because I don't know if I can get a Dlookup to work due to the fact I'm dealing with a date range rather than just a single date.
Thank you in advance for your time and effort.
I have a table called ListOfGroupNumbers. This table has three columns-- StartDate, EndDate, and GroupNumber. I want to use this table as a reference table to return the group number that an entry date belongs to (falls within the date range). It looks like this:
StartDate | EndDate | GroupNumber |
1/7/2013 | 3/31/2013 | Group 1 |
4/1/2013 | 5/31/2013 | Group 2 |
6/1/2013 | 6/30/2013 | Group 3 |
<tbody>
</tbody>
I have another table called "ExcelData". This table has a field called EntryDate. I want to use the EntryDate as a lookup value, and figure out which Group number that belongs to (which date range that entry date falls within), based on the table "ListOfGroupNumbers" (shown above). For example, I want to write an expression in a query so that if I have an entry date of 4/7/2013, it will return "Group 2"
It's tough because I don't know if I can get a Dlookup to work due to the fact I'm dealing with a date range rather than just a single date.
Thank you in advance for your time and effort.