T
Tom
I need some help with an Access query or user-defined function. Hopefully
this is the proper message board for this issue.
Before I get into Access, I'd like to provide some basic background about
the data source and how it is collected.
BACKGROUND INFO - EXCEL (what's done before data is important into Access):
Data is collected in a spreadsheet on 3 levels (e.g. "1", "1.1", "1.1.1",
etc.). The numbers (the field is actually TEXT data type) represent tasks
that various members of an organization complete in their day-to-routine.
The spreadsheet contains a column where the members select either "Yes" or
"No". Members may indicate e.g. a "Yes" for task "1.1.1". That means that
they complete this task. Although implied, members do not have to select
"Yes" for the parent tasks "1" & "1.1". However, logically speaking, it
makes sense that if "1.1.1" is completed, there must be some work effort on
the parent task level(s).
BACKGROUND INFO - ACCESS (here lies the challenge):
Again, in the example of "1.1.1", the "logical parent tasks" are not checked
in the spreadsheet and, therefore, not pulled by the queries in Access.
What I need to achieve in Access:
- Create a function or query that will "pull" all parent tasks (pending on
the "child level" or "grandchild level").
Example of CURRENT Query results (where TASKNO is the field header):
TASKNO DONE
1 YES
1.1.2 YES
2.1 YES
2.1.2 YES
3.1.3 YES
If done properly, the same query/function should produce the following
results:
TASKNO DONE COMMENT (why this record is/should be pulled)
1 YES record was selected by member
1.1 record must be pulled because of "1.1.2"
1.1.2 YES record was selected by member
2 record must be pulled because of "2.1" & "2.1.2"
2.1 YES record was selected by member
2.1.2 YES record was selected by member
3 record must be pulled because of "3.1" & "3.1.3"
3.1 record must be pulled because of "3.1.3"
3.1.3 YES record was selected by member
I truly would appreciate feedback from anyone who could provide me some
advice as to how I could tackle this.
Thanks!!!
Tom
this is the proper message board for this issue.
Before I get into Access, I'd like to provide some basic background about
the data source and how it is collected.
BACKGROUND INFO - EXCEL (what's done before data is important into Access):
Data is collected in a spreadsheet on 3 levels (e.g. "1", "1.1", "1.1.1",
etc.). The numbers (the field is actually TEXT data type) represent tasks
that various members of an organization complete in their day-to-routine.
The spreadsheet contains a column where the members select either "Yes" or
"No". Members may indicate e.g. a "Yes" for task "1.1.1". That means that
they complete this task. Although implied, members do not have to select
"Yes" for the parent tasks "1" & "1.1". However, logically speaking, it
makes sense that if "1.1.1" is completed, there must be some work effort on
the parent task level(s).
BACKGROUND INFO - ACCESS (here lies the challenge):
Again, in the example of "1.1.1", the "logical parent tasks" are not checked
in the spreadsheet and, therefore, not pulled by the queries in Access.
What I need to achieve in Access:
- Create a function or query that will "pull" all parent tasks (pending on
the "child level" or "grandchild level").
Example of CURRENT Query results (where TASKNO is the field header):
TASKNO DONE
1 YES
1.1.2 YES
2.1 YES
2.1.2 YES
3.1.3 YES
If done properly, the same query/function should produce the following
results:
TASKNO DONE COMMENT (why this record is/should be pulled)
1 YES record was selected by member
1.1 record must be pulled because of "1.1.2"
1.1.2 YES record was selected by member
2 record must be pulled because of "2.1" & "2.1.2"
2.1 YES record was selected by member
2.1.2 YES record was selected by member
3 record must be pulled because of "3.1" & "3.1.3"
3.1 record must be pulled because of "3.1.3"
3.1.3 YES record was selected by member
I truly would appreciate feedback from anyone who could provide me some
advice as to how I could tackle this.
Thanks!!!
Tom