A
Ananth
I have a Spend_Table in a database that has 3 year data (2007,2008,2009).
Fields are as under
Country
Supplier
Year
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Data appearing under months are in Euros
I have to extract data from this table for a 12 Month period, for Feb-09, I
have to extract data from this table from Mar-08 to Feb-09 and then do some
anlaysis.
I presently achieve this by 2 queries. Using Spend_table In the first query,
choosing criteria for Year as “2008â€, extract data for Mar-08 to Dec-08. Then
I run a append query choosing criteria for Year as “2009â€, extract data for
Jan & Feb-09. Every month I need to modify the query by excluding one month
in Qry 1 and adding 1 month in Qry2,
Can this be achieved by a single query and by providing some parameters for
start month & end month
Fields are as under
Country
Supplier
Year
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Data appearing under months are in Euros
I have to extract data from this table for a 12 Month period, for Feb-09, I
have to extract data from this table from Mar-08 to Feb-09 and then do some
anlaysis.
I presently achieve this by 2 queries. Using Spend_table In the first query,
choosing criteria for Year as “2008â€, extract data for Mar-08 to Dec-08. Then
I run a append query choosing criteria for Year as “2009â€, extract data for
Jan & Feb-09. Every month I need to modify the query by excluding one month
in Qry 1 and adding 1 month in Qry2,
Can this be achieved by a single query and by providing some parameters for
start month & end month