I have a predesigned database, from a program for tracking address/contact information (so I can't change the database structure), where I enter an individual and then in a different field for that record I enter the Spouse's name and Children's names. When I look at the Tables, for this program, it list each individual (primary person, spouse, and children) on a separate lines. What it does is have a field, in the Table for each individual, called Type. If the Type = "0" then that is the primary person in the address record. If the Type = "1" then that is the spouse of the primary person. Then Type = "2" is the individual names of children of the primary person.
I created a Query that captures every individual and their Type on a separate line, but what I am trying to do now is create a report that gives me the Primary person (Type = "0"), and in the same Section, the Spouse (Type = "1") and the Children (Type = "2"). But I have no idea how to create the three necessary IIF statements to get the right information into the section. Also how do I deal with 1, 2, 3, 4, or no children?
A second part of this question is that I have some labels in each section for each field (e.g. Address:, Cell Phone:, etc.) so when I don't have any information in a field (say I don't have their cell phone number), how do I eliminate that label (Cell Phone:) and field (cell phone information) from the report (just for that record) so I can shorten up the report and only report actual information?
I created a Query that captures every individual and their Type on a separate line, but what I am trying to do now is create a report that gives me the Primary person (Type = "0"), and in the same Section, the Spouse (Type = "1") and the Children (Type = "2"). But I have no idea how to create the three necessary IIF statements to get the right information into the section. Also how do I deal with 1, 2, 3, 4, or no children?
A second part of this question is that I have some labels in each section for each field (e.g. Address:, Cell Phone:, etc.) so when I don't have any information in a field (say I don't have their cell phone number), how do I eliminate that label (Cell Phone:) and field (cell phone information) from the report (just for that record) so I can shorten up the report and only report actual information?
Comment