Hi,
I have a small Access database which has 3 tables with column names called 'Jul-02','Aug-02'....'Dec-07' holding finanical data for those periods. I also have a Periods table which holds period names and a table which includes the current month's name.
I would like to be able to dynamically create a query which would only select data from those columns which come under a date range e.g. the next 48 months and for this query to change each month, so for example, this month it selects 'Aug-02' to 'Jul-06' from the tables, next month it selects 'Sep-02' to 'Aug-06' and so on. Is this possible in Access?
Thanks,
Rory
I have a small Access database which has 3 tables with column names called 'Jul-02','Aug-02'....'Dec-07' holding finanical data for those periods. I also have a Periods table which holds period names and a table which includes the current month's name.
I would like to be able to dynamically create a query which would only select data from those columns which come under a date range e.g. the next 48 months and for this query to change each month, so for example, this month it selects 'Aug-02' to 'Jul-06' from the tables, next month it selects 'Sep-02' to 'Aug-06' and so on. Is this possible in Access?
Thanks,
Rory