R
Rod
I have a StartDate of type String. I need to query for all StartDates within
the last week. Furthermore, I need to present those which are on Mondays
(later to separately present the rest of the days, but I figured I would have
to have different queries for each day - correct me if I am wrong). Here is
as far as I got:
SELECT [tblMy Outlook Calendar].StartDate, [tblMy Outlook Calendar].Subject,
CDate(Format([StartDate],"m/d/yyyy")) AS 1Wk, Weekday([StartDate]) AS Mon,
[tblMy Outlook Calendar].Categories
FROM [tblMy Outlook Calendar]
GROUP BY [tblMy Outlook Calendar].StartDate, [tblMy Outlook
Calendar].Subject, [tblMy Outlook Calendar].Categories, [tblMy Outlook
Calendar].Categories
HAVING (((CDate(Format([StartDate],"m/d/yyyy")))>=DateAdd("d",-7,Date()))
AND (([tblMy Outlook Calendar].Categories)="Appointment") AND
((Weekday([StartDate]))=2) AND (([tblMy Outlook
Calendar].Categories)="Appointment"));
Categories must be "Appointment".
the last week. Furthermore, I need to present those which are on Mondays
(later to separately present the rest of the days, but I figured I would have
to have different queries for each day - correct me if I am wrong). Here is
as far as I got:
SELECT [tblMy Outlook Calendar].StartDate, [tblMy Outlook Calendar].Subject,
CDate(Format([StartDate],"m/d/yyyy")) AS 1Wk, Weekday([StartDate]) AS Mon,
[tblMy Outlook Calendar].Categories
FROM [tblMy Outlook Calendar]
GROUP BY [tblMy Outlook Calendar].StartDate, [tblMy Outlook
Calendar].Subject, [tblMy Outlook Calendar].Categories, [tblMy Outlook
Calendar].Categories
HAVING (((CDate(Format([StartDate],"m/d/yyyy")))>=DateAdd("d",-7,Date()))
AND (([tblMy Outlook Calendar].Categories)="Appointment") AND
((Weekday([StartDate]))=2) AND (([tblMy Outlook
Calendar].Categories)="Appointment"));
Categories must be "Appointment".