A
AnneMarie
Dear Access Community,
I have a database in which all entries are done on a day-to-day basis. A
summary report must be done that shows monthly figures as well as a one year
rolling sum. I have almost gotten everything figured out (thanks to all of
you!) except the report now has to be interactive so that a person can type
say the current month under my field "PlantDate" and have the query pull all
the records for the previous year. The problem is if the person types in
01/01/2007 the query does not pull the the last days of the month for 2007
and if they enter 01/31/2007 it doesn't pull the first of the month for 2006.
I have thought about doing the Start-End date but this is a program for
people who will not understand that you have to run from the first of the
month last year to the end of the month this year for a full "year"
Below is the query is have so far under my field "PlantDate" (Where [Input
Date] is input by the user so that it can be changed each month/quarter:
Between [Input Date] And DateAdd("m",-12,[Input Date])
Can someone give me a relatively easy solution along the lines of the query
above? Especially since I am not skilled in programming...I think it has to
do with DateSerial but I just can't seem to get it through my head.
Thank you again...
Anne-Marie
I have a database in which all entries are done on a day-to-day basis. A
summary report must be done that shows monthly figures as well as a one year
rolling sum. I have almost gotten everything figured out (thanks to all of
you!) except the report now has to be interactive so that a person can type
say the current month under my field "PlantDate" and have the query pull all
the records for the previous year. The problem is if the person types in
01/01/2007 the query does not pull the the last days of the month for 2007
and if they enter 01/31/2007 it doesn't pull the first of the month for 2006.
I have thought about doing the Start-End date but this is a program for
people who will not understand that you have to run from the first of the
month last year to the end of the month this year for a full "year"
Below is the query is have so far under my field "PlantDate" (Where [Input
Date] is input by the user so that it can be changed each month/quarter:
Between [Input Date] And DateAdd("m",-12,[Input Date])
Can someone give me a relatively easy solution along the lines of the query
above? Especially since I am not skilled in programming...I think it has to
do with DateSerial but I just can't seem to get it through my head.
Thank you again...
Anne-Marie