
Originally Posted by
Ajax
As June says, create a reference table of dates - just a single date field - and populate it with all dates for your period under review - might be from 1/1/2017 to 31/12/2017 or 1/1/2000 to 31/12/2100, whatever you need
then left join this table to your other table on the start/stop date field.
You will then need a criteria to limit the date range for each part to the earliest and latest dates.
if your start/stop date fields are two separate fields in your table, you have made life complicated for yourself - you should have a table with a single start/stop date field and a field to indicate which it is
providing your alpha part of your code is always at the end, you can use the val function to exclude the alpha character