Eddyoftheyear
Technical User
I am working on a form that has 3 options to choose from before someone can run the form. it is a task form where you can specify the time frame you are looking for. e.g. all tasks due in a week.
all tasks due this month.
all tasks
tasks due today
what will be the best efficient way to do this?
The query for the month form will be:
SELECT Tbl_Organization.OrganizationName, tblActivities.actDescription, tblSchedule.schDate, Tbl_Staff.Name, tblSchedule.schSchID, tblSchedule.schNotes, Tbl_Projects.ProjectTypeID, Tbl_Projects.Description, Tbl_Projects.ProjectDate
FROM ((tblSchedule RIGHT JOIN (Tbl_Organization LEFT JOIN Tbl_Projects ON Tbl_Organization.OrganizationID = Tbl_Projects.OrganizationID) ON tblSchedule.ProjectID = Tbl_Projects.ProjectID) LEFT JOIN Tbl_Staff ON tblSchedule.schStaffID = Tbl_Staff.GCStaffID) LEFT JOIN tblActivities ON tblSchedule.schActID = tblActivities.actActID
WHERE (((Month([schDate]))=Month(Now())) AND ((tblSchedule.schStaffID)=[Forms]![Stafflookup_frm]![Combo0]));
all tasks due this month.
all tasks
tasks due today
what will be the best efficient way to do this?
The query for the month form will be:
SELECT Tbl_Organization.OrganizationName, tblActivities.actDescription, tblSchedule.schDate, Tbl_Staff.Name, tblSchedule.schSchID, tblSchedule.schNotes, Tbl_Projects.ProjectTypeID, Tbl_Projects.Description, Tbl_Projects.ProjectDate
FROM ((tblSchedule RIGHT JOIN (Tbl_Organization LEFT JOIN Tbl_Projects ON Tbl_Organization.OrganizationID = Tbl_Projects.OrganizationID) ON tblSchedule.ProjectID = Tbl_Projects.ProjectID) LEFT JOIN Tbl_Staff ON tblSchedule.schStaffID = Tbl_Staff.GCStaffID) LEFT JOIN tblActivities ON tblSchedule.schActID = tblActivities.actActID
WHERE (((Month([schDate]))=Month(Now())) AND ((tblSchedule.schStaffID)=[Forms]![Stafflookup_frm]![Combo0]));