Home / Expert Answers / Computer Science / create-a-query-that-displays-departments-names-and-groups-add-a-new-field-displaying-overdue-pa826

(Solved): Create a query that displays departments names and groups. Add a new field displaying Overdue ...



Expression Builder
Enter an Expression to define the calculated query field:
(Examples of expressions include [field1] + [fieCreate a query that displays departments’ names and groups. Add a new field displaying “Overdue” if the department’s DateOfLastReview is empty and the department’s group is either sales and marketing, manufacturing, or quality assurance. For everything else, display “Completed”. In the result, display the departments that are overdue only. Sort the result in ascending order by the departments’ names. Save this query as Query2.

Expression Builder Enter an Expression to define the calculated query field: (Examples of expressions include [field1] + [field2] and [field1] < 5) Overdue: IIf(IsNull( [Departments]![DateOfLastReview] ) and [Departments]![[DeptGroup] = "Sales and Marketing" or [Departments]![DeptGroup] = "Manufacturing" or [Departments]![[DeptGroup] = "Quality Assurance"), "Overdue", "completed")


We have an Answer from Expert

View Expert Answer

Expert Answer



Expression Provided :



This expression creates a new calculated field called "Overdue" using the IIf function. If the "DateOfLastReview" field is null and the "DeptGroup" field is either "Sales and Marketing", "Manufacturing", or "Quality Assurance", then the "Overdue" field will display "Overdue". Otherwise, it will display "Completed".

We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe