G
Guest
Professionals:
I am trying to design a report from 2 tables. My report is based on a query
of the two tables.
Table 1: Company
Table 2: Company Officers
What I am attempting to do is create a report that shows the company name
and its officers, however, I need a position for all officers and for the
name to appear where there is one and a blank space to appear where there is
not.
I have each company on a separate page and this is an example of what I
need. On each of the company reports, the titles of the positions will remain
in the same order. A name will appear where we have one.
ABC Company
President: Bob Smith
Vice President: Joe Schmoe
Treasurer:
Secretary: Harry Larry
We do not have a treasurer listed for the ABC company but the position is
there without a name.
What I have tried to do is the following in the detail section of the
report. I have created a text box for each of the company titles:
=(IIf([T_Title]="President","President:" & [Name],""))
=(IIf([T_Title]="Vice President","President:" & [Name],""))
=(IIf([T_Title]="Treasurer","President:" & [Name],""))
=(IIf([T_Title]="Secretary","President:" & [Name],""))
I have tried using a subreport but no matter what I do, depending on how
many officers are listed for the company, the detail either doesn't appear or
it appears in different positions on the page.
I am at a loss.
Thanks in advance for your help.
I am trying to design a report from 2 tables. My report is based on a query
of the two tables.
Table 1: Company
Table 2: Company Officers
What I am attempting to do is create a report that shows the company name
and its officers, however, I need a position for all officers and for the
name to appear where there is one and a blank space to appear where there is
not.
I have each company on a separate page and this is an example of what I
need. On each of the company reports, the titles of the positions will remain
in the same order. A name will appear where we have one.
ABC Company
President: Bob Smith
Vice President: Joe Schmoe
Treasurer:
Secretary: Harry Larry
We do not have a treasurer listed for the ABC company but the position is
there without a name.
What I have tried to do is the following in the detail section of the
report. I have created a text box for each of the company titles:
=(IIf([T_Title]="President","President:" & [Name],""))
=(IIf([T_Title]="Vice President","President:" & [Name],""))
=(IIf([T_Title]="Treasurer","President:" & [Name],""))
=(IIf([T_Title]="Secretary","President:" & [Name],""))
I have tried using a subreport but no matter what I do, depending on how
many officers are listed for the company, the detail either doesn't appear or
it appears in different positions on the page.
I am at a loss.
Thanks in advance for your help.