I have a table that stores weekly status entries for projects managed by my office. Five columns in the table (named Scope, Schedule, Staffing, Finances, & Technology) have 3 valid values: "No Issues", "Minor Issues", "Critical Issues". I also have a report set up that shows the most current status entry for each project.
Here's what I want to do:
On the report, I'd like to include an indication of how the status of the project has changed from one week to the next. I need some sort of query that looks at the value of the previous week (for the columns listed above) and compares it to the current week. For example - if a project's current Scope value is "Minor Issues" and the previous week's value was "No Issues" I want to show a minus sign or indicator that says something like "declining" to indicate that the Scope status has declined from the previous week. A plus sign or "improving" message would be shown if the value has improved from one week to the next. One indicator value would be shown next to each of the values form the 5 columns listed above.
How do I set up a query to do this? For Scope, I want to say:
"Compare last week's value to this week's value.
Display 'No change' indicator if the values match.
Display 'Declining' indicator if this week's value is 'Critical Issues' and last week's value was not 'Critical Issues'.
Display 'Declining' indicator if this week's value is 'Minor Issues' and last week's value was 'No Issues'.
Display 'Improving' indicator if this week's value is 'No Issues' and last week's was not 'No Issues'.
Display 'Improving' indicator if this week's value is 'Minor Issues' and last week's value was 'Critical Issues'."
Then I'd have to repeat this for each of the other 4 fields.
I don't know the syntax for writing a query or macro like this.