wpanssi
12-03-2008, 05:03 PM
I need to create a complex (at least for me) query with access. I have the tables in the attachment also. It may be easier to look the tables in excel.
I have a table data:
Person Wish 1 Wish 2
person 1 A C
person 2 B A
person 3 C A
So I have different persons and each person has two wishes. A wish presents a task that the person wants. So everyone can apply for two tasks.
I have also table task:
task
A
B
C
And from these two tables I would need to create query that results in something like this:
Task Person Wish 1 Wish 2
A person 1 A C
A person 2 B A
A person 3 C A
B person 2 B A
C person 1 A C
C person 3 C A
So I can easily check all the people who have applied for the task A and all the people who have applied for the task b and so on.
I'm not sure do I need vba to achieve this. I certainly hope I can just make a query since I haven't played with access vba..
Could someone please help me?
Thanks in advance!
I have a table data:
Person Wish 1 Wish 2
person 1 A C
person 2 B A
person 3 C A
So I have different persons and each person has two wishes. A wish presents a task that the person wants. So everyone can apply for two tasks.
I have also table task:
task
A
B
C
And from these two tables I would need to create query that results in something like this:
Task Person Wish 1 Wish 2
A person 1 A C
A person 2 B A
A person 3 C A
B person 2 B A
C person 1 A C
C person 3 C A
So I can easily check all the people who have applied for the task A and all the people who have applied for the task b and so on.
I'm not sure do I need vba to achieve this. I certainly hope I can just make a query since I haven't played with access vba..
Could someone please help me?
Thanks in advance!