ardy
Registered User.
- Local time
- Today, 15:36
- Joined
- Sep 24, 2012
- Messages
- 98
Hello All.
I have an existing query that will give me the number of dates for given month and year in Fiscal Calendar Year.
QUERY:
I have been stuck on two things........
1- Every time I run this query I get the Enter Parameter Value input dialog box for CalendarMonth and CalenderYear, I just puxh ok and the query runs. Is there a way to not get Enter Parameter Value Box...?
2- would I be able to add in column 5 that gives me which Quarter it is i.e Q1, Q2 etc.....(See Query-2.jpg)
Thnak You All
I have an existing query that will give me the number of dates for given month and year in Fiscal Calendar Year.
QUERY:
Code:
SELECT Count(Sch_Sampling_Date.Sch_Sampling_Collection_Date) AS CountOfSch_Sampling_Collection_Date, Year([Sch_Sampling_Collection_Date]) AS CalenderYear, Month([Sch_Sampling_Collection_Date]) AS CalenderMonth, IIf([CalenderMonth]<6,[CalenderYear]-1,[CalenderYear]) AS FY
FROM Sch_Sampling_Date
GROUP BY Year([Sch_Sampling_Collection_Date]), Month([Sch_Sampling_Collection_Date]), IIf([CalenderMonth]<6,[CalenderYear]-1,[CalenderYear]);
1- Every time I run this query I get the Enter Parameter Value input dialog box for CalendarMonth and CalenderYear, I just puxh ok and the query runs. Is there a way to not get Enter Parameter Value Box...?
2- would I be able to add in column 5 that gives me which Quarter it is i.e Q1, Q2 etc.....(See Query-2.jpg)
Thnak You All