I need some help on the criteria in my query...
i need to be able to look at todays date, subtract 1 from it and then i need to have the DAY stay the same but subtract 1 month from it.
ie. if today were 2/7/01 then i would need my query to look like...
Date Amount Date1 Amount1 Date2 Amount2
1/6/01 2,000 12/6/00 2,500 11/6/00 3,000
etc.
i might be able to get it to work if it came up like...
Date Amount
1/6/01 2,000
12/6/00 2,500
11/6/00 3,000
but the first way would be easier.
how can i do this? i only need to pull the past 12 months
and to throw a stick into our spokes... if the date happens to fall on a sat or sun, then i need to pull the fri before info, but the dates afterward still need to stay the same day as the original one.
thank you in advance
ps. i am leaving in a few minutes and won't be back till monday, i just wanted to get this out here for you guys to mull over.
thanks again
i need to be able to look at todays date, subtract 1 from it and then i need to have the DAY stay the same but subtract 1 month from it.
ie. if today were 2/7/01 then i would need my query to look like...
Date Amount Date1 Amount1 Date2 Amount2
1/6/01 2,000 12/6/00 2,500 11/6/00 3,000
etc.
i might be able to get it to work if it came up like...
Date Amount
1/6/01 2,000
12/6/00 2,500
11/6/00 3,000
but the first way would be easier.
how can i do this? i only need to pull the past 12 months
and to throw a stick into our spokes... if the date happens to fall on a sat or sun, then i need to pull the fri before info, but the dates afterward still need to stay the same day as the original one.
thank you in advance
ps. i am leaving in a few minutes and won't be back till monday, i just wanted to get this out here for you guys to mull over.