Hi, I am sure I am thinking this is more compllicated than it is btu I'm hoping soemone can point me in the right and best direction. I have a table called months that shows each month in on column, a code and the dates the month covers e.g. August, W01, 15 Aug - 14 Sep.
MthNo MonthDesc ILRMonth Dates 01 January W06 15 Dec - 14 Jan 02 February W07 15 Jan - 14 Feb 03 March W08 15 Feb - 14 Mar
I need to write a query to look at a column in another table [DateRec] and if it falls between the dates showing in the dates column of the months table give me the month. The previous person to do this had used the mid function [Mid([DateRec],4,2)] but obviously this just brought up everything in the month.
My instinct is just to ignore the table and find a way of writing the query to look betwee the two dates.
Would be grateful for any ideas for this, thank you.![]()