G
garrett901
Hello All
I’m having a bit of a problem and I was wondering if any of you ACCESS
experts could help me.
What I have is a Query that is fairly simple but I need to be able to pull
the data by Month, Quarter (first quarter, second quarter etc…), and yearly
(Jan 1 thru Dec 31, current year). Right now I have it set up so it will ask
you by month (select a number for the month 1 thru 12).
Example:
Between DateSerial(Year(Date()),[Enter month NUMBER(1-12)],1) And
DateSerial(Year(Date()),1+[Enter month NUMBER(1-12)],0)
I would like the quarterly and yearly option to pop up in a box just like it
does in the example above, I just don’t know how to make that happen, and I
don’t speak SQL.
Eventually I would also like to have an option in the same box (that is
password protected) to delete the entries from the previous year, (this is
2009, delete 2008?). If need be I can jump that hurdle latter on.
Here is the SQL view of my current Query:
SELECT [Project Time].Date, [Project Time].[Time Start], [Project
Time].Technition, [Project Time].[Working On], [Project Time].[Time Stop],
[Project Time].[Minutes Worked On Project], [Project Time].Department
FROM [Project Time]
WHERE ((([Project Time].Date) Between DateSerial(Year(Date()),[Enter month
NUMBER(1-12)],1) And DateSerial(Year(Date()),1+[Enter month
NUMBER(1-12)],0)));
I would like to thank all of you in advance for your help. I usually find
the answers I’m looking for already out there asked previously…….So once
again, thank you all!!!
Jeff G
I’m having a bit of a problem and I was wondering if any of you ACCESS
experts could help me.
What I have is a Query that is fairly simple but I need to be able to pull
the data by Month, Quarter (first quarter, second quarter etc…), and yearly
(Jan 1 thru Dec 31, current year). Right now I have it set up so it will ask
you by month (select a number for the month 1 thru 12).
Example:
Between DateSerial(Year(Date()),[Enter month NUMBER(1-12)],1) And
DateSerial(Year(Date()),1+[Enter month NUMBER(1-12)],0)
I would like the quarterly and yearly option to pop up in a box just like it
does in the example above, I just don’t know how to make that happen, and I
don’t speak SQL.
Eventually I would also like to have an option in the same box (that is
password protected) to delete the entries from the previous year, (this is
2009, delete 2008?). If need be I can jump that hurdle latter on.
Here is the SQL view of my current Query:
SELECT [Project Time].Date, [Project Time].[Time Start], [Project
Time].Technition, [Project Time].[Working On], [Project Time].[Time Stop],
[Project Time].[Minutes Worked On Project], [Project Time].Department
FROM [Project Time]
WHERE ((([Project Time].Date) Between DateSerial(Year(Date()),[Enter month
NUMBER(1-12)],1) And DateSerial(Year(Date()),1+[Enter month
NUMBER(1-12)],0)));
I would like to thank all of you in advance for your help. I usually find
the answers I’m looking for already out there asked previously…….So once
again, thank you all!!!
Jeff G