R
Robert
I have an existing form using an WordXP template that is activated
from a VisualBasic application. The app sends a connection string and
ID number to the template which then takes over and uses a series of
VBA procedures to pull in recordsets from a number of tables in a
database, locate corresponding bookmarks and write out the data in the
recordsets to the document.
This form works well but was designed to use only one ID at a time,
fill out the form, save it and close.
I am trying now to figure out if there is a way to have this process
repeat for an array of IDs and create a single document in a manner
similar to a mail merge so that it can be saved and/or sent to the
printer in a single operation.
I don't know much about mail merge but I don't think it would work
since there are multiple calls to the database. I have seen
suggestions to others that VBA can manually control a mail merge step
by step (page by page?) but have never found any code for this and am
not sure if it's even possible in the way I would need.
I could obviously have VB send one ID and create one document at a
time but as I stated above I'd like to create them all at once from an
array.
I don't know if it is possible from within Word to create new
instances of a particular document successively added on at the end as
in a mail merge without actually using a mail merge.
I may be taking a completely wrong approach to this problem. Any ideas
would be greatly appreciated.
Robert
from a VisualBasic application. The app sends a connection string and
ID number to the template which then takes over and uses a series of
VBA procedures to pull in recordsets from a number of tables in a
database, locate corresponding bookmarks and write out the data in the
recordsets to the document.
This form works well but was designed to use only one ID at a time,
fill out the form, save it and close.
I am trying now to figure out if there is a way to have this process
repeat for an array of IDs and create a single document in a manner
similar to a mail merge so that it can be saved and/or sent to the
printer in a single operation.
I don't know much about mail merge but I don't think it would work
since there are multiple calls to the database. I have seen
suggestions to others that VBA can manually control a mail merge step
by step (page by page?) but have never found any code for this and am
not sure if it's even possible in the way I would need.
I could obviously have VB send one ID and create one document at a
time but as I stated above I'd like to create them all at once from an
array.
I don't know if it is possible from within Word to create new
instances of a particular document successively added on at the end as
in a mail merge without actually using a mail merge.
I may be taking a completely wrong approach to this problem. Any ideas
would be greatly appreciated.
Robert