V
VanceT
I am a student working for a university library in the production of a
directory of private foundations in our state. We need to generate a large
directory of these foundations using MS Word (2003). However, the data for
the foundations has been stored in multiple tables in Access (2003) so that
for every one foundation stored in the primary table there are many sample
grants listed in a separate table, many officers and directors in another
table, and many areas of funding interest in yet another table.
I have generated a report in Access with the appropriate subreports to
generate the entire list of all the foundations we track. I have tried using
the "publish to MS Word" feature, but the *.rtf file is occasionally missing
some information in large text fields from the main table. The data shows up
properly in the report viewer in Access, so I pretty confident that the
problem here is occuring when the data is being exported to the *.rtf file.
This has led me to consider creating a flat-file table to be used with the
"merge" feature of MS Word. However, I do not know how to convert the data
from the related tables (with the "many" relationships) into a flat-file
format. The data in all of these related tables is text.
What I am starting with is something like this:
Table1
fldFoundationID (primary key)
fldName
fldAddress
fldNotes
Table2
fldFoundationID
fldSampleGrantID (primary key)
fldSampleGrant
These two are related by the field fldFoundationID where the Table1 has the
"one" side of the relationship and Table2 has the "many" side.
Obviously, I can have numerous grants listed for each foundation, but we
have limited the number of grants that we sample to 7.
The desired conversion would be something like this:
fldFoundationID (primary key)
fldName
fldAddress
fldSampleGrant1
fldSampleGrant2
fldSampleGrant3
fldSampleGrant4
fldSampleGrant5
fldSampleGrant6
fldSampleGrant7
fldNotes
It would help tremendously if anyone can tell me how to create such a
flat-file table. Likewise, it would be equally helpful if anyone could tell
me why "publishing" the report to *.rtf in Word resulted in data occasionally
being lost.
directory of private foundations in our state. We need to generate a large
directory of these foundations using MS Word (2003). However, the data for
the foundations has been stored in multiple tables in Access (2003) so that
for every one foundation stored in the primary table there are many sample
grants listed in a separate table, many officers and directors in another
table, and many areas of funding interest in yet another table.
I have generated a report in Access with the appropriate subreports to
generate the entire list of all the foundations we track. I have tried using
the "publish to MS Word" feature, but the *.rtf file is occasionally missing
some information in large text fields from the main table. The data shows up
properly in the report viewer in Access, so I pretty confident that the
problem here is occuring when the data is being exported to the *.rtf file.
This has led me to consider creating a flat-file table to be used with the
"merge" feature of MS Word. However, I do not know how to convert the data
from the related tables (with the "many" relationships) into a flat-file
format. The data in all of these related tables is text.
What I am starting with is something like this:
Table1
fldFoundationID (primary key)
fldName
fldAddress
fldNotes
Table2
fldFoundationID
fldSampleGrantID (primary key)
fldSampleGrant
These two are related by the field fldFoundationID where the Table1 has the
"one" side of the relationship and Table2 has the "many" side.
Obviously, I can have numerous grants listed for each foundation, but we
have limited the number of grants that we sample to 7.
The desired conversion would be something like this:
fldFoundationID (primary key)
fldName
fldAddress
fldSampleGrant1
fldSampleGrant2
fldSampleGrant3
fldSampleGrant4
fldSampleGrant5
fldSampleGrant6
fldSampleGrant7
fldNotes
It would help tremendously if anyone can tell me how to create such a
flat-file table. Likewise, it would be equally helpful if anyone could tell
me why "publishing" the report to *.rtf in Word resulted in data occasionally
being lost.