D
Darach
Hi
I am working on a Word 2003 application in which I populate the document
with data that I retrieve from a database. The number of pages within the
document depends on the amount of records returned from querying the
database. I have set up an auto text entry that contains all of the fields
(textboxes) for each record. On startup I insert the autotext entries so that
the document displays the correct number of pages to display detail for all
the selected records.
I now need to populate textboxes on the various pages in the doc. I know the
names each textbox (e.g. txtAddress, txtAddress1 for the next page, etc.) but
I don't know how I can set the .text property of each textbox in code because
only the textboxes on the first page will be available at design time.
Can anyone suggest a way around this? Will I nee to try a different appraoch?
Thanks
Darach
I am working on a Word 2003 application in which I populate the document
with data that I retrieve from a database. The number of pages within the
document depends on the amount of records returned from querying the
database. I have set up an auto text entry that contains all of the fields
(textboxes) for each record. On startup I insert the autotext entries so that
the document displays the correct number of pages to display detail for all
the selected records.
I now need to populate textboxes on the various pages in the doc. I know the
names each textbox (e.g. txtAddress, txtAddress1 for the next page, etc.) but
I don't know how I can set the .text property of each textbox in code because
only the textboxes on the first page will be available at design time.
Can anyone suggest a way around this? Will I nee to try a different appraoch?
Thanks
Darach