Re: Looping to find status
- From: "Jeff Boyce" <nonsense@xxxxxxxxxxxx>
- Date: Thu, 4 Oct 2007 08:58:10 -0700
I'm having trouble visualizing the underlying data structure. What you
described sounds a bit like a form, not a table.
Are you saying that you have 7 fields in your table, each field holding a 1,
2, or 3? If so, your table structure might benefit from further
normalization, as a data design like that ("repeating fields") is what you'd
expect to find for a spread***, but makes you (and Access) work a lot
harder in a relational database.
It sounds like you could add the field values to help determine the overall
....
If the sum is 10 or greater (4 @ 1, plus 3 @ 2) AND if none are a 3, you
have "yellow".
If any are 3, you have "red".
This might be handled in a query, using IIF() statements (untested
speculation...).
Regards
Jeff Boyce
Microsoft Office/Access MVP
"J-Mack" <jones.john.t@xxxxxxxxx> wrote in message
news:1191511353.280485.102310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
My issue.... I am trying to determine the overall status of a record
based on seven status categories.
STAFF
DEVELOPMENT
DEPLOYMENT
ISSUES
SCHEDULE
SCOPE
QUALITY
Each of these categories is a field that can be green (1), yellow (2),
or red (3). If any of the 7 are red, then the overall is red.... if 3
of the seven are yellow, then the overall is yellow. I have been
racking my brain trying to determine how to best code this. I thought
a loop, but not sure how I could loop through them. Thought about
summing the fields, but that won't work either.
The fields are currently seven separate option boxes:
GREEN
YELLOW RED
STAFF
DEVELOPMENT
DEPLOYMENT
ISSUES
SCHEDULE
SCOPE
QUALITY
Any insight would be most appreciative. I may be trying to make this
too difficult. lol.
.
- Follow-Ups:
- Re: Looping to find status
- From: J-Mack
- Re: Looping to find status
- References:
- Looping to find status
- From: J-Mack
- Looping to find status
- Prev by Date: getting errors and warnings from ADO
- Next by Date: Re: Problems with Vista and Access 2003
- Previous by thread: Looping to find status
- Next by thread: Re: Looping to find status
- Index(es):