T
TechScribe
I want to print team rosters in an existing MS Word document, each team
appearing on its own copy of the document. The number of team members varies
from team to team.
Access contains several hundred names in the Employees table. The employees
are members of 57 teams, each employee being on only one team.
A second table contains the names and descriptions of the teams.
The query in Access combines both tables in one record for each employee. To
clarify, I mean that each record contains one employee name, the name of the
team, and the team information. (I agree that successive records contain
duplicate information, but I have not normalized the employee table, so it
remains simple for the users.)
If I could trap the team name in a temporary user-defined variable, the
solution would be elegantly simple: <<Next Record>><<IF team name is same
THEN MemberName>>
I have not found such a user variable in MS Word documentation. I am hoping
that I do not have to resort to macros. I am comfortable with VBA for Access,
but have not done anything like that with MS Word.
To complicate things a bit, I would like to add this document to a master
document that contains two more sub-documents that need the same treatment,
printing employee names by team. The master document would print a bundle of
documents for each team.
If you are curious, the documents in the bundle represent milestones in a
large project that requires tracking. Right now, the team leaders manually
fill in each document. I am trying to simplify their life and improve
accuracy.
Thank you for your valuable time.
appearing on its own copy of the document. The number of team members varies
from team to team.
Access contains several hundred names in the Employees table. The employees
are members of 57 teams, each employee being on only one team.
A second table contains the names and descriptions of the teams.
The query in Access combines both tables in one record for each employee. To
clarify, I mean that each record contains one employee name, the name of the
team, and the team information. (I agree that successive records contain
duplicate information, but I have not normalized the employee table, so it
remains simple for the users.)
If I could trap the team name in a temporary user-defined variable, the
solution would be elegantly simple: <<Next Record>><<IF team name is same
THEN MemberName>>
I have not found such a user variable in MS Word documentation. I am hoping
that I do not have to resort to macros. I am comfortable with VBA for Access,
but have not done anything like that with MS Word.
To complicate things a bit, I would like to add this document to a master
document that contains two more sub-documents that need the same treatment,
printing employee names by team. The master document would print a bundle of
documents for each team.
If you are curious, the documents in the bundle represent milestones in a
large project that requires tracking. Right now, the team leaders manually
fill in each document. I am trying to simplify their life and improve
accuracy.
Thank you for your valuable time.