A
Amy E. Baggott
I have a form that runs data files for Word Merges that create cover letters
and floor plans (Word merges the data, and the actual floor plans are cut and
pasted from an interactive floor plan online) and then opens the Word Merge
documents. Currently I have each Word document hard-linked to a specific
file, and the code saves each query to its respective file. That works fine
if only one person is running the letters and floor plans. However, when we
are busy, we have multiple people doing the assigning of exhibitors, and each
is responsible for running the invoices, letters, and floor plans for the
exhibitors he or she has assigned. I can modify the queries to select only
the records for that user, but the problem is that if one user runs his/her
letters, then another user runs his/hers, the second one overwrites the data
from the first. I know I can have the form change the filename for the data
based on the user easily enough. What I want to know is whether there is a
way for the form to open the Word document and specify at runtime what the
data source for the merge should be? The command I am using to open the Word
file is:
Application.FollowHyperlink Forms!frmCurrentShow!txtExport & "Exhibitor
Correspondence and data\Correspondence\Exhibitor Confirmation Letter.doc"
Can anyone help me?
and floor plans (Word merges the data, and the actual floor plans are cut and
pasted from an interactive floor plan online) and then opens the Word Merge
documents. Currently I have each Word document hard-linked to a specific
file, and the code saves each query to its respective file. That works fine
if only one person is running the letters and floor plans. However, when we
are busy, we have multiple people doing the assigning of exhibitors, and each
is responsible for running the invoices, letters, and floor plans for the
exhibitors he or she has assigned. I can modify the queries to select only
the records for that user, but the problem is that if one user runs his/her
letters, then another user runs his/hers, the second one overwrites the data
from the first. I know I can have the form change the filename for the data
based on the user easily enough. What I want to know is whether there is a
way for the form to open the Word document and specify at runtime what the
data source for the merge should be? The command I am using to open the Word
file is:
Application.FollowHyperlink Forms!frmCurrentShow!txtExport & "Exhibitor
Correspondence and data\Correspondence\Exhibitor Confirmation Letter.doc"
Can anyone help me?