I have wrestled with this for sometime: My report is displaying more of a matrix, and less of a summary, than I want.
Briefly, I have a main table, called Complaints. Its ComplaintID Primary Key is a foreign key in several other tables, for example, in Departments, as well as in Functions. Using outer joins, then, if I have one Complaint, involving (i.e. with the ComplaintID as a Foreign Key) 2 different Departments, and 4 different Functions (also with the ComplaintID as a Foreign Key), my query displays this as 8 lines (that's why I'm calling it a matrix, i.e. 1 x 2 x 4).
I don't see a problem with that (I've got outer joins on each of two successive, i.e. nested queries). But I cannot get my report to give me a simple listing, without repetitions.
What I want is something like:
Complaint No.1:
Department A
Department B
Function I
Function II
Function III
Function IV
Instead, I'm getting:
Complaint No. 1:
Department A
Function I
Function II
Function III
Function IV
Department B
Function I
Function II
Function III
Function IV
Actually, I've got more nested queries, so it's really worse than this, but this is the paradigm I've got to master. What is the trick to controlling reports?
Tnx, Tom
Briefly, I have a main table, called Complaints. Its ComplaintID Primary Key is a foreign key in several other tables, for example, in Departments, as well as in Functions. Using outer joins, then, if I have one Complaint, involving (i.e. with the ComplaintID as a Foreign Key) 2 different Departments, and 4 different Functions (also with the ComplaintID as a Foreign Key), my query displays this as 8 lines (that's why I'm calling it a matrix, i.e. 1 x 2 x 4).
I don't see a problem with that (I've got outer joins on each of two successive, i.e. nested queries). But I cannot get my report to give me a simple listing, without repetitions.
What I want is something like:
Complaint No.1:
Department A
Department B
Function I
Function II
Function III
Function IV
Instead, I'm getting:
Complaint No. 1:
Department A
Function I
Function II
Function III
Function IV
Department B
Function I
Function II
Function III
Function IV
Actually, I've got more nested queries, so it's really worse than this, but this is the paradigm I've got to master. What is the trick to controlling reports?
Tnx, Tom