I have a query that lists the type and dates of inspections for food facilities. Fields used:
FoodID
Priority (this will only have entries: 1, 2, 3)
InspectionDate
I wish to add a field : "Re-Inspection Date"
which will be based on the Priority & InspectionDate fields;
Examples:
If priority = 1, then the next inspection will be 4 months after the InspectionDate.
If priority = 2, then the next inspection will be 1 year after the InspectionDate.
If priority = 3, then the next inspection will be 2 years after the Inspection Date.
Can anyone help with building the "iff" statement or suggest alternative?
FoodID
Priority (this will only have entries: 1, 2, 3)
InspectionDate
I wish to add a field : "Re-Inspection Date"
which will be based on the Priority & InspectionDate fields;
Examples:
If priority = 1, then the next inspection will be 4 months after the InspectionDate.
If priority = 2, then the next inspection will be 1 year after the InspectionDate.
If priority = 3, then the next inspection will be 2 years after the Inspection Date.
Can anyone help with building the "iff" statement or suggest alternative?